Created
January 24, 2012 09:45
-
-
Save jacob414/1669303 to your computer and use it in GitHub Desktop.
Writing CoffeeScript Modules for Browser and Node
This file contains hidden or 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
# See http://braintostring.blogspot.com/2012/01/writing-javascript-modules-for-browser.html | |
foo = exports? and @ or @foo = {} | |
class foo.ExampleClass | |
method: -> 1 | |
foo.func = -> 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment