Advertisement
keysle

Final K8r Juoopt 2

Oct 23rd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // K8r Juoopt
  2. (function(){
  3.     Plugin = (function(){
  4.         _ = Plugin.prototype;
  5.         function Plugin(){
  6.             this.k8r = {
  7.                 // //////////////////////////////////////////// START: MEAT
  8.                 'ns':'unique',
  9.                 'pluginOption':'optionValue'
  10.                 // //////////////////////////////////////////// END: MEAT
  11.             };
  12.             // //////////////////////////////////////////////// START: MEAT
  13.             this.other_initial_variables = 'initial variable';
  14.             this.initializing_function();
  15.         }
  16.        
  17.         _.initializing_function = function(){
  18.             alert(this.k8r['pluginOption']);
  19.         };
  20.  
  21.         // ///////////////////////////////////////////////////// END: MEAT
  22.         return Plugin;
  23.     })();
  24.  
  25.     function initiate(){
  26.         var plugin;
  27.         return plugin = new Plugin();
  28.     }
  29.  
  30.     if(window.addEventListener){
  31.         window.addEventListener('load',initiate,false);
  32.     }else{
  33.         window.attachEvent('onload',initiate);
  34.     }
  35. }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement