On 20 juil, 01:32, jay <[email protected]> wrote: > Ah, so that's good for handlers of *DOM* events [e.g., using > addDomHandler()]. For "logical" events [those added via addHandler()], > however, it seems like you may still need to manually remove > listeners. > > Is that correct?
As long as the handler don't have a reference on the widget (or whichever object you attached the handler), no. If the widget is garbage collected, its internal HandlerManger will also be, and your handler too (unless you have another reference to it). Exception: if you keep a reference to the HandlerRegistration, you're also responsible for calling remove() (but why would you keep a HandlerRegistration around otherwise?) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
