ソースを参照

Merge pull request #120 from whalepath/master

handle case where a field is removed after the bootstrap validation
Phuoc Nguyen 12 年 前
コミット
02a06a06d0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
src/js/bootstrapValidator.js

@@ -377,7 +377,7 @@
         isValid: function() {
             var field, validatorName;
             for (field in this.results) {
-                if (!this.options.fields[field]['enabled']) {
+                if (this.options.fields[field] == null || !this.options.fields[field]['enabled']) {
                     continue;
                 }