Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephank/555523 to your computer and use it in GitHub Desktop.
Save stephank/555523 to your computer and use it in GitHub Desktop.
(function () {
var myModule = {
"prop1" : "some value",
"prop2" : "some other value"
};
myModule.someMethod = function () {
// Do stuff with props.
};
var root = (typeof(exports) !== 'undefined') ? exports : window;
root.myModule = myModule;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment