Skip to content

Instantly share code, notes, and snippets.

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

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
You can’t perform that action at this time.