Created
September 25, 2012 04:59
-
-
Save mushfiq/3780085 to your computer and use it in GitHub Desktop.
Javascript pattern
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
app = {}; | |
app.run = function run() { | |
//console.log('Running app...'); | |
app.init(); | |
} | |
app.init = function () { | |
//console.log('Running init...'); | |
app.bind(); | |
} | |
app.bind = function () { | |
app.bindSillyMethod(); | |
} | |
app.bindSillyMethod = function (){ | |
console.log("this is a Silly method!") | |
} | |
$(document).ready(function () { | |
app.run(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment