View Full Version : Do custom events automatically propageted to children from parent container?

28 Sep 2011, 11:40 AM

I added custom event to Toolbar and all Buttons and Menu Items.
If I fire event on Toolbar it doesn't get propagated to children. As I understand, Bubbled Events go Up to parent. Is there any way to make event go Down to children from parent container?

I did addEvents('statechange') in all classes, created listeners: {statechange: function()....} in some and do mytoolbar.fireEvent('statechange','1') on toolbar. Only onstatechange function from toolbar gets executed


29 Sep 2011, 11:16 AM
No, there is no 'cascadeEvents'.

There is a cascade method that you could use.

Parents should not send events to children. They should subscribe to them.