Aloha

what is the common usage pattern with event listeners attached to elements?

Googling reveals examples with popup menues using addListenerOnce() vs
others using addListener(), the addListenerOnce case seemingly trying to
avoid the problem of handling the listener removal automatically, which
does not make sense because only one of the several menu items involved 
will fire and then be subsequentally removed.

Too bad, that the documentation (or at least what I was able to find)
does not provide a canonical pattern for event listeners.

The documentation of addListener()'s return value says:

An opaque ID, which CAN be used to remove the event listener using the
#removeListenerById method

(emphasis added)

After browsing the source I'm pretty much inclined to say, that event
listeners MUST be released by whoever added them.

May I humbly ask for a clarification of this matter, mahalo!

Werner

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to