update group

This commit is contained in:
Mike Dirolf 2009-06-08 11:08:59 -04:00
parent 70fb0a6e6a
commit 7b0da3cb7e
1 changed files with 3 additions and 2 deletions

View File

@ -171,10 +171,11 @@ function () {
key[keys[i]] = obj[keys[i]];
}
var aggObj = map[key];
var aggObj = map.get(key);
if (aggObj == null) {
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);
}