Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Created Jun 24, 2014
Embed
What would you like to do?
Skeleton object-orientated JS
var app = new App('arg');
App = function(arg) {
this.APP_CONSTANT = 0;
this.appVar = arg;
this._init();
}
App.prototype._init = function(arg1) {
console.log(this.appVar);
this._addListeners();
}
App.prototype._addListeners = function() {
el.addEventListener("click", this._eventHandler);
}
@lukehedger
Copy link
Author

lukehedger commented Jun 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment