diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index 272c516d..2c49c26c 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -134,7 +134,7 @@ Ox.filter = function(collection, iterator, that) { ret = {}; Ox.forEach(collection, function(value, key) { if (iterator.call(that, value, key, collection)) { - ret[value] = key; + ret[key] = value; } }); } else {