Permalink
Browse files

remove unneeded logic

  • Loading branch information...
1 parent 15a5818 commit 2b33819bdb8ee4c243de149358c0d0d60c006260 @aheckmann aheckmann committed Oct 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/schema/documentarray.js
@@ -107,8 +107,8 @@ DocumentArray.prototype.cast = function (value, doc, init) {
var doc = new this.caster(null, value);
value[i] = init
- ? doc.init(value[i].doc || value[i])
- : doc.set (value[i].doc || value[i]);
+ ? doc.init(value[i])
+ : doc.set (value[i]);
}
}

0 comments on commit 2b33819

Please sign in to comment.