Skip to content

Commit

Permalink
fix: dont re-call setOptions() when pulling base class options
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 22, 2019
1 parent d8d94f8 commit b36dfd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ function Query(criteria, options) {

this.op = proto.op || undefined;

this.options = {};
this.setOptions(proto.options);
this.options = Object.assign({}, proto.options);

this._conditions = proto._conditions
? utils.clone(proto._conditions)
Expand Down

0 comments on commit b36dfd8

Please sign in to comment.