From: edward Date: Mon, 9 Nov 2015 06:00:08 +0000 (+0800) Subject: Roo/util/MixedCollection.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=6d62973cee477d156a9ae569523de98246818a1b;p=roojs1 Roo/util/MixedCollection.js --- diff --git a/Roo/util/MixedCollection.js b/Roo/util/MixedCollection.js index 7b9029076d..86cd8b6d01 100644 --- a/Roo/util/MixedCollection.js +++ b/Roo/util/MixedCollection.js @@ -485,15 +485,10 @@ mc.add(otherEl); * @param {Object} scope (optional) The scope of the function (defaults to this) * @return {MixedCollection} The new filtered collection */ - filterBy : function(fn, scope, anyMatch){ - Roo.log(fn); - Roo.log(scope); + filterBy : function(fn, scope){ var r = new Roo.util.MixedCollection(); - Roo.log(r); r.getKey = this.getKey; - Roo.log(r.getKey); var k = this.keys, it = this.items; - Roo.log([k, it]); for(var i = 0, len = it.length; i < len; i++){ if(fn.call(scope||this, it[i], k[i])){ r.add(k[i], it[i]);