Created
April 3, 2013 15:47
-
-
Save mcculloughsean/5302396 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
#coffee test.coffee | |
bar | |
bar |
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 Page | |
constructor: (attr) -> | |
Page.prototype.foo = attr | |
a = new Page 'foo' | |
b = new Page 'bar' | |
console.log a.foo | |
console.log b.foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment