From: edward Date: Mon, 9 Nov 2015 08:02:42 +0000 (+0800) Subject: Roo/data/Store.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=20a240b89f991e030535c1fdf33907701bc35131;p=roojs1 Roo/data/Store.js --- diff --git a/Roo/data/Store.js b/Roo/data/Store.js index 091d8f17a2..bb1fe7b520 100644 --- a/Roo/data/Store.js +++ b/Roo/data/Store.js @@ -584,13 +584,8 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, { * @param {Boolean} anyMatch True to match any part not just the beginning */ filter : function(property, value, anyMatch){ - - if(typeof(property) == 'string'){ - var fn = this.createFilterFn(property, value, anyMatch); - return fn ? this.filterBy(fn) : this.clearFilter(); - } - - + var fn = this.createFilterFn(property, value, anyMatch); + return fn ? this.filterBy(fn) : this.clearFilter(); }, /**