Skip to content

Commit 71b7c3d

Browse files
committed
[build] 1.0.9
1 parent df1691b commit 71b7c3d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/jquery.validator.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nice-validator 1.0.8
1+
/*! nice-validator 1.0.9
22
* (c) 2012-2016 Jony Zhang <[email protected]>, MIT Licensed
33
* https://github.com/niceue/nice-validator
44
*/
@@ -666,7 +666,7 @@
666666
// For checkbox and radio
667667
elem = el.name && _checkable(el) ? me.$el.find('input[name="'+ el.name +'"]').get(0) : el;
668668
// Get field
669-
if (!(field = me.getField(elem))) {
669+
if (!(field = me.getField(elem)) || !field.rule) {
670670
return;
671671
}
672672
// Cache event type
@@ -692,8 +692,8 @@
692692
return;
693693
}
694694
if ( timely === 2 || timely === 8 ) {
695-
if (value) {
696-
old = field.old;
695+
old = field.old;
696+
if (value && old) {
697697
if (field.isValid && !old.showOk) {
698698
me.hideMsg(el);
699699
} else {

0 commit comments

Comments
 (0)