Instantly share code, notes, and snippets.

@TheSavior /page.js Secret
Created Jun 11, 2015

Embed
What would you like to do?
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