Browse Source

remove global variable pc

variable pc is not define var, so it will be a global variable
huang.xinghui 9 năm trước cách đây
mục cha
commit
aa91075d75
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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;
                   }
 
                 }