Use operator/operand in narrow.collect_single().

(This is part of converting away from tuples.)

(imported from commit ba3083f8b3242fee1d532d7666aee68af89d8ddc)
This commit is contained in:
Steve Howell 2014-01-30 13:39:17 -05:00
parent 796ebfd007
commit 15b0f9dcc7
1 changed files with 2 additions and 2 deletions

View File

@ -49,11 +49,11 @@ function collect_single(operators) {
var seen = new Dict();
var result = new Dict();
_.each(operators, function (elem) {
var key = elem[0];
var key = elem.operator;
if (seen.has(key)) {
result.del(key);
} else {
result.set(key, elem[1]);
result.set(key, elem.operand);
seen.set(key, true);
}
});