One thing I forgot to mention - if you do remove a widget from the DOM, its
associated listeners will indeed also be removed. However, if you reattach
that widget, its associated event listeners will also be reattached.
In order to explicitly remove event listeners, you would need to call the
associated removexxListener() on the widget.

Hope that helps,
-Sumit Chandel

On Tue, Oct 28, 2008 at 4:19 PM, Sumit Chandel <[EMAIL PROTECTED]>wrote:

> Hi Yefim,
> When you say that some of the widgets in your application go away, do you
> mean that they are detached from the DOM (i.e.
> verticalPanel.remove(myWidget)) ?
>
> If so, you shouldn't need to worry about removing associated listeners from
> the widget itself. Once it's removed from the DOM, so are the listeners that
> were added to it.
>
> Hope that helps,
> -Sumit Chandel
>
>
> On Mon, Oct 27, 2008 at 9:45 AM, Yefim <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>> I have multiple widgets acting as listeners on shared data models.
>> Eventually some of that widgets go away.
>> Can I call data model' removexxListener() from within a widget and if
>> yes at what point or I have to manage them from outside?
>>
>> >>
>>
>

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