Created
June 20, 2016 02:42
-
-
Save mpalmr/80d451f93a80b651041dd1116df3388c to your computer and use it in GitHub Desktop.
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
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