-
-
Save TheSavior/d1849ec003db6762fa7a to your computer and use it in GitHub Desktop.
CommonJS Public / Private State
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
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