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

index ab3fd7b..091d8f1 100644 (file)
@@ -590,53 +590,7 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
             return fn ? this.filterBy(fn) : this.clearFilter();
         }
         
-        var fn = [];
-        var afn = [];
         
-        var _this = this;
-        
-        Roo.each(property, function(p){
-            if(anyMatch == true){
-                afn.push(_this.createFilterFn(p, value, true));
-            }
-            
-            fn.push(_this.createFilterFn(p, value, false));
-        });
-        
-        if(!fn.length && !afn.length){
-            return this.clearFilter();
-        }
-        
-        this.snapshot = this.snapshot || this.data;
-        
-        var filterData = [];
-        
-        Roo.each(fn, function(f){
-            filterData.push(_this.queryBy(f, _this));
-        });
-        
-        Roo.each(afn, function(f){
-            filterData.push(_this.queryBy(f, _this));
-        });
-        
-        var data = this.snapshot || this.data;
-        
-        var r = new Roo.util.MixedCollection();
-        r.getKey = data.getKey;
-        
-        var keys =[];
-        
-        Roo.each(filterData, function(d){
-            var k = d.keys, it = d.items;
-            for(var i = 0, len = it.length; i < len; i++){
-                if(keys.indexOf(k[i]) == -1){
-                    r.add(k[i], it[i]);
-                }
-            }
-        });
-
-        this.data = r;
-        this.fireEvent("datachanged", this);
     },
 
     /**