goupviet / joose-js

Automatically exported from code.google.com/p/joose-js
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

When setting attributes in a parent class method, value changes for all instances of child classes #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a parent class with an attribute
2. Create a method in the parent class that sets a value on the attribute
3. Create a child class that extends the parent
4. Create 2 instances of the child class
5. Call the method on the first child instance
6. Inspect the property on the second child instance, it has been set to the 
same value as the first instance

What is the expected output? What do you see instead?
The property of the second instance should be empty

What version of the product are you using? On what operating system?
Joose 3, MacOSX, Node

Please provide any additional information below.

Original issue reported on code.google.com by chris12295 on 20 Feb 2012 at 9:41