Skip to content
Browse files

fix strict embedded docs

closes #717
  • Loading branch information...
1 parent 7dc3e15 commit 248710c2e8aca477bdceea5f9c48494d8a689939 @aheckmann aheckmann committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/document.js
View
2 lib/document.js
@@ -29,7 +29,7 @@ function Document (obj, fields) {
if (!this._events) this._events = {};
this.setMaxListeners(0);
- this._strictMode = this.options && this.options.strict;
+ this._strictMode = this.schema.options && this.schema.options.strict;
if ('boolean' === typeof fields) {
this._strictMode = fields;

0 comments on commit 248710c

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