No you don't have to.

Just remove the panel from the DOM and make sure that you have no
further reference in your code.
The rest should be handled by the browser garbage collector, unless
you have some other references to the ClickListener, Button or Panel.

David

On Wed, Jul 1, 2009 at 11:37 AM, sudhakar<[email protected]> wrote:
>
> I need one small clarification in Garbage collection.
> If I have a Panel, containing a button and
> I add a ClickListener to that Button, do I really have to remove
> that ClickListenner from the Button before removing the Panel
> (panel.clear())?
>
> my doubt is clear() method clear all children with listener object or
> not?
>
> Regards
>
> Sudhakar. J
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to