daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest May 17th, 2018 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var app = {
  2.   before: function () { console.log("i am going to be runned before all other functions") },
  3.  
  4.   func1: function () {
  5.     console.log("func1");
  6.   },
  7.  
  8.   func2: function () {
  9.     console.log("func2");
  10.   }
  11. };
  12.  
  13. app.funct1();
  14. // i am going to be runned before all other functions
  15. // func1
  16.  
  17. app.funct2();
  18. // i am going to be runned before all other functions
  19. // func2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top