Created
August 13, 2012 13:59
-
-
Save robinduckett/3341006 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
ns = {} | |
test = 0 | |
class ns._Users | |
constructor: -> | |
test++ | |
class ns.Users | |
_instance = undefined | |
@instance: () -> | |
_instance ?= new ns._Users() | |
Users = ns.Users | |
Users.instance() | |
Users.instance() | |
Users.instance() | |
Users.instance() | |
Users.instance() | |
alert(test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment