diff --git a/lib/collection.js b/lib/collection.js index 3133cfc..30e47f1 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -123,6 +123,8 @@ Collection.prototype.remove = function (query, options, cb) { if (typeof query === 'function') return this.remove({}, {justOne: false}, query) if (typeof options === 'function') return this.remove(query, {justOne: false}, options) if (typeof options === 'boolean') return this.remove(query, {justOne: options}, cb) + if (!options) return this.remove(query, {justOne: false}, cb) + if (!cb) return this.remove(query, options, noop) this._getCollection(function (err, collection) { if (err) return cb(err)