Created
December 8, 2009 15:08
-
-
Save hojberg/251709 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = { | |
before: function () { console.log("i am going to be runned before all other functions") }, | |
func1: function () { | |
console.log("func1"); | |
}, | |
func2: function () { | |
console.log("func2"); | |
} | |
}; | |
app.funct1(); | |
// i am going to be runned before all other functions | |
// func1 | |
app.funct2(); | |
// i am going to be runned before all other functions | |
// func2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment