View Full Version : Can't set listeners in Container.defaults?

6 Oct 2009, 10:24 PM
the "listeners" entry can be added to each of the embedded item but the handlers just can't be invoked. (p.s. the event I want to handle is supported by all the items in my case)

I compared the item object in firebug, it looked different from when "listeners" is explicitely specified along with its other options. I thought in the latter way, the handler could be registerred to the "events" property of this object, while if specified in container's defaults, this registration wouldn't be made.

Does any one have any idea on this problem? I failed to google anything about it. Thank you.

6 Oct 2009, 11:25 PM
It will work if you are adding a config object with an xtype, but not if you add an instantiated Component.