From 3b1add43bff79e590e2b5e8981297949e90bc4c0 Mon Sep 17 00:00:00 2001 From: Raghavendra Karunanidhi Date: Thu, 26 Feb 2015 20:43:15 +0530 Subject: [PATCH] Update revalidator.js For the issue #98 https://github.com/flatiron/revalidator/issues/98 --- lib/revalidator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/revalidator.js b/lib/revalidator.js index 58476b0..c14af04 100644 --- a/lib/revalidator.js +++ b/lib/revalidator.js @@ -384,7 +384,7 @@ nestedErrors.forEach(function (e) { e.property = property + '.' + e.property }); - nestedErrors.unshift(0, 0); + nestedErrors.unshift(errors.length, 0); Array.prototype.splice.apply(errors, nestedErrors); } break;