Code like above is not working anymore. Has it to do with the new render flow?

mitchellsimoens

27 Dec 2011, 7:07 AM

You shouldn't put listeners on the prototype like you are. Is it even firing in beta 1?

tvanzoelen

27 Dec 2011, 7:10 AM

Yes it is firing. Does it solve the problem if I put the listeners in the config?

mitchellsimoens

27 Dec 2011, 7:14 AM

Just been getting a few reports that it wasn't working in beta 1 for other people.

The problem with putting the listeners on the prototype like that is your class needs them to work. What if down the road you need to set a listener on that component? It will overwrite the ones you put on the prototype and you have now possibly broken your class. It is much better to use this.on in initComponent

tvanzoelen

27 Dec 2011, 7:24 AM

Ok thanx, I have put the listeners in the initComponent, but still the el.nextSibling is null error