Browse Source

Restructure the group function to multiple lines.

saintedlama/travis-non-legacy
Eduardo Sorribas 10 years ago
parent
commit
d42d7a0c3c
  1. 10
      index.js

10
index.js

@ -219,7 +219,15 @@ Collection.prototype.findAndModify = function(options, callback) {
};
Collection.prototype.group = function(group, callback) {
this._apply(DriverCollection.group, [group.key ? group.key : group.keyf, group.cond, group.initial, group.reduce, group.finalize, true, callback]);
this._apply(DriverCollection.group, [
group.key ? group.key : group.keyf,
group.cond,
group.initial,
group.reduce,
group.finalize,
true,
callback
]);
};
Collection.prototype.remove = function() {

Loading…
Cancel
Save