Skip to content

Instantly share code, notes, and snippets.

@founddrama
Created October 10, 2012 01:34
Show Gist options
  • Save founddrama/3862622 to your computer and use it in GitHub Desktop.
Save founddrama/3862622 to your computer and use it in GitHub Desktop.
window.NR = window.NR || {};
window.NR.myModule = (function () {
"use strict";
function initialize() {
// your initialization code here
}
function anotherMethod() {
// its function body here
}
return {
myVariable: "foo",
initialize: initialize,
anotherMethod: anotherMethod
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment