fix a bug in Ox.filter for objects

This commit is contained in:
rlx 2012-06-10 09:00:12 +00:00
parent 7382d9fbb9
commit 806cbd1557

View file

@ -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 {