Created
September 10, 2014 15:30
-
-
Save marcelosomers/7b1adffae5603b1e4bb1 to your computer and use it in GitHub Desktop.
JavaScript Module Pattern
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 App = App || {}; | |
App.Section = App.Section || {}; | |
App.Section.Script = function () { | |
// Initialize global functions | |
function initalizeDomElements() { | |
} | |
function wireEvents() { | |
} | |
function initialize() { | |
initalizeDomElements; | |
wireEvents(); | |
} | |
return { | |
initialize: initalize | |
}; | |
}(); | |
$(document).ready(function() { | |
App.Section.Script.initialize(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment