Comparing version 1.8.3 to 1.8.4
1.8.4 / 2011-08-21 | ||
=================== | ||
* Fixed; validation bug when instantiated with non-schema properties (#464) [jmreidy] | ||
1.8.3 / 2011-08-19 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -511,2 +511,6 @@ | ||
function complete() { | ||
validationError ? next(validationError) : next(); | ||
} | ||
function validatePath (path) { | ||
@@ -517,3 +521,3 @@ if (validating[path]) return; | ||
var p = self.schema.path(path); | ||
if (!p) return --total || next(); | ||
if (!p) return --total || complete(); | ||
@@ -525,4 +529,3 @@ p.doValidate(self.getValue(path), function (err) { | ||
} | ||
--total || | ||
(validationError ? next(validationError) : next()); | ||
--total || complete(); | ||
}, self); | ||
@@ -529,0 +532,0 @@ }); |
@@ -292,3 +292,3 @@ | ||
exports.version = '1.8.3'; | ||
exports.version = '1.8.4'; | ||
@@ -295,0 +295,0 @@ /** |
{ | ||
"name": "mongoose" | ||
, "description": "Mongoose MongoDB ORM" | ||
, "version": "1.8.3" | ||
, "version": "1.8.4" | ||
, "author": "Guillermo Rauch <guillermo@learnboost.com>" | ||
@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"] |
Sorry, the diff of this file is too big to display
911136
120
15095