Closed gizur-ess-anshuk closed 11 years ago
This is a Javascript problem, not a Stapes one. The problem is that the scope of ClassA
stays the same in both iterations. A new
doesn't give you a new anonymous scope. Unfortunately there's no easy way to solve this, at least, not in Stapes. You could try using pseudo-private variables by adding them to the class but using an underscore (ClassA._private = private;).
I'll add some comments in the docs on this though.
Thanks for your issue!
Try this: