Skip to content
Browse files

modifiedFlag not used. Make sure that options is always an object. Ma…

…ke sure that the model object setter gets object._doc
  • Loading branch information...
1 parent 07ef78f commit 3fd539636201001a78dc5fbaef33921b0a36c2d3 @JoshuaGross committed Oct 29, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/mongoose-subpopulate.js
View
1 lib/mongoose-subpopulate.js
@@ -363,7 +363,6 @@ function wrapModelObject (object) {
wrappedObject.populatedObjects[value._id] = value;
object.set(attr, value.mongooseLink);
} else {
- object[attr] = value;
object._doc[attr] = value;
object.set(attr, value);
wrappedObject.set(attr, value);

0 comments on commit 3fd5396

Please sign in to comment.
Something went wrong with that request. Please try again.