PDA

View Full Version : Initialization sequence for errors in Ext.util.Observable



waitingmyself
16 Aug 2011, 5:59 PM
i have the code
var groupFeature = new Ext.grid.feature.Grouping({
groupHeaderTpl:'{name}({rows.length})',
hideGroupedHeader:true,
listeners:{
click:{
fn:function() {
alert('click');
},
scope:me
}
},
collapse:Ext.emptyFn
});
and then i get an error,and i debug in ie9
27504
27505

is there something wrong in my code or is a bug?

thanks

skirtle
16 Aug 2011, 6:35 PM
From a quick experiment of my own I'd say it looks like a bug. I wasn't able to add listeners using the listeners config option: I kept getting the error you saw. I tried this in 4.0.2 and 4.0.5.

Note that click isn't actually an event of Ext.grid.feature.Grouping, not that it makes any difference to whether this error occurs.

I suggest you post this in the bugs forum. See the stickies in that forum for details of how to report a bug.

waitingmyself
16 Aug 2011, 7:20 PM
thanks for your reply

is a 'groupclick' event :">

but i'm strange that why it has not errors in other classes with 'listeners' config

like
2750927510