Skip to content

Instantly share code, notes, and snippets.

@akouryy
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akouryy/94eab00dd9d858ae1ae2 to your computer and use it in GitHub Desktop.
Save akouryy/94eab00dd9d858ae1ae2 to your computer and use it in GitHub Desktop.
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