EventBus.addHandler returns a HandlerRegistration. Call removeHandler() on 
that object to remove the corresponding handler from the EventBus.

On Wednesday, April 4, 2012 5:46:30 AM UTC+2, Alex Luya wrote:
>
> Hello
>    I have two widgets,and both of them implement same event
> handler,subscribe to same EventBus to  listen same event.What I expect
> is after view switching from widget1 to widget2,widget1 can be
> unsubscribed from EventBus and collected by browser,so when event is
> fired again,only widget2 will handle it.But actually,widget1 still live
> and will handle the event.How can I solve this problem?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/rMOGWqM-NwgJ.
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