Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created August 28, 2010 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ericelliott/555512 to your computer and use it in GitHub Desktop.
Save ericelliott/555512 to your computer and use it in GitHub Desktop.
var myModule = (function () {
var myModule = {
"prop1" : "some value",
"prop2" : "some other value"
};
myModule.someMethod = function () {
// Do stuff with props.
};
if (exports) {
exports.myModule = myModule;
}
return myModule;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment