Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // K8r Juoopt
- (function(){
- Plugin = (function(){
- _ = Plugin.prototype;
- function Plugin(){
- this.k8r = {
- // //////////////////////////////////////////// START: MEAT
- 'ns':'unique',
- 'pluginOption':'optionValue'
- // //////////////////////////////////////////// END: MEAT
- };
- // //////////////////////////////////////////////// START: MEAT
- this.other_initial_variables = 'initial variable';
- this.initializing_function();
- }
- _.initializing_function = function(){
- alert(this.k8r['pluginOption']);
- };
- // ///////////////////////////////////////////////////// END: MEAT
- return Plugin;
- })();
- function initiate(){
- var plugin;
- return plugin = new Plugin();
- }
- if(window.addEventListener){
- window.addEventListener('load',initiate,false);
- }else{
- window.attachEvent('onload',initiate);
- }
- }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement