Tuesday, April 24, 2012

automatically unsinking event when no hanlders present ?

Hi,
GWT automatically sinks the required event type when the first handlers is added of certain event type (done in Widget class).

Whay about automatically unsinking when a handler is remove and you notice that no handlers of that event type is present anymore?
Is this worth doing?

Note in my case setup it's easy to wrap the HandlerRegistration and detect if any handler is still present on a removeHandler action, but is this worth doing?
So is the cost of wrapping and detecting worth it?

- Ed

--
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/-/xHeH0L2LPdMJ.
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.

No comments:

Post a Comment