nghuuphuoc 11 年 前
コミット
dc101ba4f0

+ 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));
             }
         });