Advertisement
Guest User

Untitled

a guest
Jul 15th, 2014
129
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.     window.mylib = {
  9.         func1: function(event) {
  10.         },
  11.         func2: function() {
  12.         },
  13.         func3: function() {
  14.         }
  15.     };
  16.  
  17.     function privateFunc1() {
  18.     }
  19.  
  20.     function privateFunc2() {
  21.     }
  22.  
  23.     function privateFunc3() {
  24.     }
  25.  
  26.     addEventListener("storage", mylib.func1);
  27.     addEventListener("unload", mylib.func1);
  28. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement