Created
June 24, 2014 11:46
-
-
Save lukehedger/176edc49186637935b2d to your computer and use it in GitHub Desktop.
Skeleton object-orientated JS
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
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resources:
You might not need jQuery