Hi, I reused some of the code to quickly write a how-to for removing an event listener:
http://qooxdoo.org/documentation/developer/removingeventlisteners So, back to work. Cheers, Christian Sebastian Werner schrieb: > Benjamin Reitzammer schrieb: > >> Hi Christian, >> sorry for being so late, but better late than never ;) >> >> On 6/8/06, Christian Boulanger <[EMAIL PROTECTED]> wrote: >> >>> I now use the following code, which works: >>> >> [...] >> >>> But it is hardly ideal because it produces a lot of useless objects... >>> Maybe someone has a better way of doing this... >>> >> If you look at the code in QxTarget.addEventListener and >> QxTarget.removeEventListener you see, that the matching that is done >> to find the listener which should be removed, is done using the third >> argument to the method call, the (optional) context object on which >> the method will be called. >> If it's not specified, QxConst.CORE_EMPTY is used. >> >> So your code to remove an event listener should probably look >> something like the following: >> >> window.application.removeEventListener ( name, o.callback, >> QxConst.CORE_EMPTY ); >> >> I know this is hardly ideal, but it works (in my application, havent >> tested your code though). >> >> Maybe the qooxdoo team should consider making removing of event >> listeners, which do not work in the context of a specific object, a >> little easier aka without internal knowledge of QxTarget. >> > > Oh, yes. Thank you for the hint. Please open a (enhancement) bug > regarding this topic. Thanks. > > Sebastian > > >> HTH >> Cheers >> >> Benjamin >> >> P.S. I hope gmail doesn't mess up my message again ... if you have >> problems reading my mail, please tell me. >> >> >> _______________________________________________ >> Qooxdoo-devel mailing list >> Qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > > > _______________________________________________ > Qooxdoo-devel mailing list > Qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > _______________________________________________ Qooxdoo-devel mailing list Qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel