Advertisement
Guest User

Untitled

a guest
Jul 15th, 2014
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mylib;
  2.  
  3. (function() {
  4.     var variable1 = null;
  5.     var variable2 = null;
  6.     var variable3 = null;
  7.     //...
  8.  
  9.     window.mylib = {
  10.         func1: function() {
  11.  
  12.         },
  13.         func2: function() {
  14.  
  15.         },
  16.         func3: function() {
  17.  
  18.         }
  19.         //...
  20.     };
  21.  
  22.     function privateFunc1() {
  23.         //...
  24.     }
  25.  
  26.     function privateFunc2() {
  27.         //...
  28.     }
  29.     function privateFunc3() {
  30.         //...
  31.     }
  32.  
  33.     addEventListener("storage", mylib.callEventListener);
  34.     addEventListener("unload", mylib.callEventListener);
  35. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement