diff --git a/dist/knockout.validation.js b/dist/knockout.validation.js index 07b697b6..5e296be4 100644 --- a/dist/knockout.validation.js +++ b/dist/knockout.validation.js @@ -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 @@ -1376,8 +1378,6 @@ kv.validateObservable = function (observable) { } } } - //finally if we got this far, make the observable valid again! - observable.clearError(); return true; }; ; @@ -1508,4 +1508,4 @@ ko.validatedObservable = function (initialValue, options) { return obsv; }; -;})); \ No newline at end of file +;}));