Thank you Thomas. You are, as always, extremely helpful!
Regards,
Joe
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
If your widgets are adding event handlers to the event bus (SimpleEventBus,
for example) then they would 'probably' need to clean themselves up at some
point by removing the handlers. When they should do this is really specific
to the life-cycle of your widgets. If they are singletons with an
BTW handlers can also ignore events while unattached. Lot of choices here.
On Sun, Jan 16, 2011 at 7:18 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:
If your widgets are adding event handlers to the event bus (SimpleEventBus,
for example) then they would 'probably' need to clean themselves
No, nothing special. Only if you create things in onAttach/onLoad you might
need to clean them up in onDetach/onUnload, but mainly so you don't have
duplicates when re-attaching the widget later.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
Hi, I'm wondering what, if anything I need to do from a cleanup
perspective when using a Widget that creates child elements. For
example:
public class MyWidget extends Widget {
public MyWidget() {
Element el = DOM.createDiv();
setElement(el);
Element anotherEl =