In the SVG contrib, I have many classes that extend qx.html.Element. Most of these also define new events (sometimes explicitly, sometimes as property events). The problem is, that a qx.html.Element will not fire any events except for the native events from the DOM element.
The cause of this is that qx.html.Element overrides the addListener method of qx.core.Object, so that all events are mapped directly to the DOM element. Unfortunately, this suppresses the framework's event system. Playground example: http://tinyurl.com/66hcyp7 In the example, you need to change "extend: qx.html.Element" to "extend: qx.core.Object" to make it work. I'm looking for a feasible workaround for this limitation; so I can mix qooxdoo events and native events within qx.html.Element subclasses. One way would be to add a addEventListener method to my classes, which mimic the addListener method of qx.core.Object. However, this could cause confusion for the user, who probably won't know when to use addListener and when to use addEventListener. I'm hoping someone could suggest a better approach to this. :)-- View this message in context: http://qooxdoo.678.n2.nabble.com/qx-html-Element-and-non-native-events-tp6316929p6316929.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
