Browse Source

remove global variable pc

variable pc is not define var, so it will be a global variable
huang.xinghui 9 years ago
parent
commit
aa91075d75
1 changed files with 1 additions and 2 deletions
  1. 1 2
      jquery.nicescroll.js

+ 1 - 2
jquery.nicescroll.js

@@ -1300,11 +1300,10 @@
                   }
                   }
 
 
                   if (/SUBMIT|CANCEL|BUTTON/i.test($(tg).attr('type'))) {
                   if (/SUBMIT|CANCEL|BUTTON/i.test($(tg).attr('type'))) {
-                    pc = {
+                    self.preventclick = {
                       "tg": tg,
                       "tg": tg,
                       "click": false
                       "click": false
                     };
                     };
-                    self.preventclick = pc;
                   }
                   }
 
 
                 }
                 }