This project is archived and is in readonly mode.

#1094 ✓duplicate
ronin-81857 (at lighthouseapp)

Swiff.remote fails with multiple Swiff instances

Reported by ronin-81857 (at lighthouseapp) | November 19th, 2010 @ 01:15 PM


the Swiff class uses a variable 'id' defined outside of the class to assign every instance a custom id. Inside the constructor there is another 'var id' that overwrites the value defined outside. If one provides an id-string via options this line fails afterwards:

this.instance = 'Swiff_' + id++;

Every instance will be named 'Swiff_NaN' internally and the only working Swiff object is the last one of X.


Rename either the outer variable or the local one in the constructor.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket