Roo/data/Store.js
authoredward <edward@roojs.com>
Mon, 9 Nov 2015 08:02:42 +0000 (16:02 +0800)
committeredward <edward@roojs.com>
Mon, 9 Nov 2015 08:02:42 +0000 (16:02 +0800)
Roo/data/Store.js

index 091d8f1..bb1fe7b 100644 (file)
@@ -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();
     },
 
     /**