Browse Source

Add compatibility support for keyf in group command

saintedlama/travis-non-legacy
Benedikt Arnold 12 years ago
parent
commit
f4d56052d5
  1. 2
      index.js

2
index.js

@ -141,7 +141,7 @@ Collection.prototype.remove = function() {
};
Collection.prototype.group = function(group, callback) {
this._apply(DRIVER_COLLECTION_PROTO.group, [group.key, group.cond, group.initial, group.reduce, group.finalize, true, callback]);
this._apply(DRIVER_COLLECTION_PROTO.group, [group.key ? group.key : group.keyf, group.cond, group.initial, group.reduce, group.finalize, true, callback]);
};
forEachMethod(DRIVER_COLLECTION_PROTO, Collection.prototype, function(methodName, fn) {

Loading…
Cancel
Save