update group
This commit is contained in:
parent
70fb0a6e6a
commit
7b0da3cb7e
|
@ -171,10 +171,11 @@ function () {
|
||||||
key[keys[i]] = obj[keys[i]];
|
key[keys[i]] = obj[keys[i]];
|
||||||
}
|
}
|
||||||
|
|
||||||
var aggObj = map[key];
|
var aggObj = map.get(key);
|
||||||
if (aggObj == null) {
|
if (aggObj == null) {
|
||||||
var newObj = Object.extend({}, key);
|
var newObj = Object.extend({}, key);
|
||||||
aggObj = map[key] = Object.extend(newObj, initial);
|
aggObj = Object.extend(newObj, initial);
|
||||||
|
map.put(key, aggObj);
|
||||||
}
|
}
|
||||||
reduce_function(obj, aggObj);
|
reduce_function(obj, aggObj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue