Rewand
12 Jul 2007, 6:17 AM
extjs 1.0.1a
windows xp
firefox 2.0.0.4
error:
this.clearFilter is not a function ext-all-debug.js line 18540
This error can come up when using a TreeFilter with either autoClear or clearBlank set to true.
A look at the code shows that TreeFilter has no clearFilter function but does have a function called clear. aliasing clear to clearFilter fixes things.
//added
clearFilter : function(){
this.clear();
},
clear : function(){
var t = this.tree;
var af = this.filtered;
for(var id in af){
if(typeof id != "function"){
var n = af[id];
if(n){
n.ui.show();
}
}
}
this.filtered = {};
}
windows xp
firefox 2.0.0.4
error:
this.clearFilter is not a function ext-all-debug.js line 18540
This error can come up when using a TreeFilter with either autoClear or clearBlank set to true.
A look at the code shows that TreeFilter has no clearFilter function but does have a function called clear. aliasing clear to clearFilter fixes things.
//added
clearFilter : function(){
this.clear();
},
clear : function(){
var t = this.tree;
var af = this.filtered;
for(var id in af){
if(typeof id != "function"){
var n = af[id];
if(n){
n.ui.show();
}
}
}
this.filtered = {};
}