Skip to content

Instantly share code, notes, and snippets.

@mpalmr
Created June 20, 2016 02:42
Show Gist options
  • Save mpalmr/80d451f93a80b651041dd1116df3388c to your computer and use it in GitHub Desktop.
Save mpalmr/80d451f93a80b651041dd1116df3388c to your computer and use it in GitHub Desktop.
var myApp = (function (app, $) {
'use strict';
app.modules = app.modules || {};
app.modules.myModule = {
foo: 1,
bar: 2,
baz: 3,
/**
* Does things
*/
doThings: function () {
return this.foo + this.bar;
},
/**
* Does stuff...not to be confused with things
*/
doStuff: function () {
return this.doThings() + this.baz;
},
};
return app;
})(myApp || {}, jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment