Created
February 11, 2012 14:07
-
-
Save nagyv/1799561 to your computer and use it in GitHub Desktop.
Module definition with Node.JS
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
(function() { | |
// Save a reference to the global object. | |
var root = this; | |
/* do stuff */ | |
root.public_method = function() {}; | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment