Explorar el Código

remove global variable pc

variable pc is not define var, so it will be a global variable
huang.xinghui hace 9 años
padre
commit
aa91075d75
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      jquery.nicescroll.js

+ 1 - 2
jquery.nicescroll.js

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