Re: Remove event handlers or not?
You don't need to. I traced the code a while back and it takes care of
it.
On Jul 13, 5:50 pm, Gal Dolber <gal.dol...@gmail.com> wrote:
> Anyone??
>
> 2010/7/13 Gal Dolber <gal.dol...@gmail.com>
>
>
>
>
>
> > Hi, someone knows for sure if its necessary to remove event handlers when
> > we remove a widget? will I get memory leaks if I don't?
>
> > i.e:
> > HandlerRegistration registration = button.addClickHandler(myHandler);
> > ...
> > // IS THIS NECESSARY?
> > public void fakeCleanerMethodBeforeIRemoveTheWidget() {
> > registration.removeHandler();
> > }
>
> > I thought that answer was YES, but then I notice that @UiHandlers in
> > uibinder have no way to remove the handler.
>
> > I don't think the gwt's team will make that mistake.
>
> > Can someone confirm? Thanks
>
> > --
> >http://gwtupdates.blogspot.com/
>
> --http://gwtupdates.blogspot.com/
--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home