nghuuphuoc 11 years ago
parent
commit
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));
             }
         });

File diff suppressed because it is too large
+ 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));
             }
         });