Last active
August 29, 2015 14:01
-
-
Save akouryy/94eab00dd9d858ae1ae2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
test: [] | |
a1 = new A() | |
a2 = new A() | |
a1.test.push 1 | |
a2.test.push 2 | |
alert a1.test # => 1,2 | |
class A | |
constructor: () -> | |
@test = [] | |
a1 = new A() | |
a2 = new A() | |
a1.test.push 1 | |
a2.test.push 2 | |
alert a1.test # => 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment