Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dist/knockout.validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,9 @@ kv.validateObservable = function (observable) {
ctx, // the current Rule Context for the loop
ruleContexts = observable.rules(), //cache for iterator
len = ruleContexts.length; //cache for iterator


observable.clearError();

for (; i < len; i++) {

//get the Rule Context info to give to the core Rule
Expand All @@ -1376,8 +1378,6 @@ kv.validateObservable = function (observable) {
}
}
}
//finally if we got this far, make the observable valid again!
observable.clearError();
return true;
};
;
Expand Down Expand Up @@ -1508,4 +1508,4 @@ ko.validatedObservable = function (initialValue, options) {

return obsv;
};
;}));
;}));