Last active
July 19, 2017 14:08
-
-
Save wickdninja/9d9f6427d271643c1d49e7e26cf09700 to your computer and use it in GitHub Desktop.
Boilerplate for ES5 module using the revealing 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 Module = (function(self){ | |
function bindElements(){ | |
// wire up references to elements | |
} | |
function bindEvents(){ | |
} | |
function init(){ | |
// setup stuff | |
bindElements(); | |
bindEvents(); | |
} | |
self.init = init; | |
}(Module || {})); | |
Module.init(); // kick things off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment