From 806cbd15572554de12415117afa502e4f828e70f Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 10 Jun 2012 09:00:12 +0000 Subject: [PATCH] fix a bug in Ox.filter for objects --- source/Ox/js/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {