Created
January 6, 2011 22:26
-
-
Save paul/768729 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 MyClass | |
one: (callback) -> | |
console.log "one" | |
callback "output" | |
two: () -> | |
@one (string) -> | |
console.log string | |
@one (string) -> # `one` is out of scope here | |
console.log string | |
test = new MyClass | |
test.two() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment