Async validations should not trump previous validations. Previous validations should be true as well as async validations

This commit is contained in:
Julien Guimont 2011-11-25 10:22:35 -05:00
parent 4d7b813953
commit 3ce01d11b2
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ Validatable.prototype.isValid = function (callback) {
asyncFail = asyncFail || fail;
if (--wait === 0 && callback) {
validationsDone.call(inst, function () {
callback(!asyncFail);
callback(valid && !asyncFail);
});
}
}