Browse Source

#356: Declare the group variable before using it

phuoc 11 years ago
parent
commit
4be6cf3c01

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -1281,7 +1281,7 @@
          * It will remove all error messages, feedback icons and turn off the events
          */
         destroy: function() {
-            var field, fields, $field, validator, $icon, container;
+            var field, fields, $field, validator, $icon, container, group;
             for (field in this.options.fields) {
                 fields    = this.getFieldElements(field);
                 container = this.options.fields[field].container || this.options.container,

File diff suppressed because it is too large
+ 2 - 2
dist/js/bootstrapValidator.min.js


+ 1 - 1
src/js/bootstrapValidator.js

@@ -1280,7 +1280,7 @@
          * It will remove all error messages, feedback icons and turn off the events
          */
         destroy: function() {
-            var field, fields, $field, validator, $icon, container;
+            var field, fields, $field, validator, $icon, container, group;
             for (field in this.options.fields) {
                 fields    = this.getFieldElements(field);
                 container = this.options.fields[field].container || this.options.container,