Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Created June 11, 2015 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSavior/d1849ec003db6762fa7a to your computer and use it in GitHub Desktop.
Save TheSavior/d1849ec003db6762fa7a to your computer and use it in GitHub Desktop.
CommonJS Public / Private State
function buttonClick(event) {
}
var Page = {
onDomLoaded: function() {
var ele = document.getElementById('myButton');
ele.addEventListener('click', buttonClick);
}
};
module.exports = Page;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment