不要怂,就是干,撸起袖子干!

Commit 91b2be7f by Jochem Maas

also strip the "include" option from options given to count()

1 parent 7a7f2d60
Showing with 2 additions and 1 deletions
...@@ -253,10 +253,11 @@ module.exports = (function() { ...@@ -253,10 +253,11 @@ module.exports = (function() {
var self = this var self = this
, copts = Utils._.extend({}, options || {}) , copts = Utils._.extend({}, options || {})
// no limit or offset for the options given to count() // no limit, offset, order or include for the options given to count()
copts.offset = 0; copts.offset = 0;
copts.limit = 0; copts.limit = 0;
copts.order = null; copts.order = null;
copts.include = null;
return new Utils.CustomEventEmitter(function (emitter) { return new Utils.CustomEventEmitter(function (emitter) {
var emit = { var emit = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!