Yes, the dispatcher for custom events, qx.event.dispatch.Direct, cannot handle bubbling events (see its 'canDispatchEvent' method).

The question is: What do you want to achieve with a bubbling *custom* event?! What should the semantics of "bubbling" be in the context of custom events? There is no default hierarchy where a custom event could bubble along, or is there?!

T.

On 09/21/2012 08:24 AM, [email protected] wrote:
Hey guys,

I've just got an issue with event bubbling at the moment, I am trying to enable bubbling on a standard qx.event.type.Event by using the following line

*this*.fireEvent("changeSelectedOption", qx.event.type.Event, [*true*]);

but I'm getting an error "No dispatcher can handle event of type changeSelectedOption..."
If I don't invoke the init() method by calling

*this*.fireEvent("changeSelectedOption", qx.event.type.Event);

the event fires correctly but doesn't bubble as is the default behaviour.

My event is declared in my class as

events :
{
    changeSelectedOption: "qx.event.type.Event"
}

From what I understand it should be possible to set generic events to bubble without needing to create my own custom bubbling event type. Am I going about this wrong somehow?

Thanks,
Rene Damyon


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html


_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to