Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment