From 3ce01d11b28db4e4d636299b4fbca53ccb015f0f Mon Sep 17 00:00:00 2001 From: Julien Guimont Date: Fri, 25 Nov 2011 10:22:35 -0500 Subject: [PATCH] Async validations should not trump previous validations. Previous validations should be true as well as async validations --- lib/validatable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validatable.js b/lib/validatable.js index f1469f06..3f45db48 100644 --- a/lib/validatable.js +++ b/lib/validatable.js @@ -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); }); } }