Skip to content

Instantly share code, notes, and snippets.

@wickdninja
Last active July 19, 2017 14:08
Show Gist options
  • Save wickdninja/9d9f6427d271643c1d49e7e26cf09700 to your computer and use it in GitHub Desktop.
Save wickdninja/9d9f6427d271643c1d49e7e26cf09700 to your computer and use it in GitHub Desktop.
Boilerplate for ES5 module using the revealing module pattern
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