nghuuphuoc 12 年之前
父节点
当前提交
dc101ba4f0
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js
  3. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -852,7 +852,7 @@
             }
 
             // Allow to call plugin method
-            if ('string' == typeof option && params && params.length > 0) {
+            if ('string' == typeof option) {
                 data[option].apply(data, Array.prototype.slice.call(params, 1));
             }
         });

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 1 - 1
src/js/bootstrapValidator.js

@@ -851,7 +851,7 @@
             }
 
             // Allow to call plugin method
-            if ('string' == typeof option && params && params.length > 0) {
+            if ('string' == typeof option) {
                 data[option].apply(data, Array.prototype.slice.call(params, 1));
             }
         });