Skip to content

Commit baebe5a

Browse files
committed
Issue 149: Validator: destroy() no longer fails if formEvent is set to null
1 parent 9fc5c7f commit baebe5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
365365
},
366366

367367
destroy: function() {
368-
form.unbind(conf.formEvent).unbind("reset.V");
368+
form.unbind(conf.formEvent || '').unbind("reset.V");
369369
inputs.unbind(conf.inputEvent || '').unbind("change.V");
370370
return self.reset();
371371
},

0 commit comments

Comments
 (0)