The purpose of the new method "addHandlersAndSink" is to allow users to add
a DOM handler and sink the necessary event in one easy step.

The reason we, the GWT team, care about this is because traditionally, with
the two call separated everyone, including us, will tend to sink the events
in the constructor rather then when a handler is actually added. This can
degrade performance significantly for small widgets, so we'd like to
encourage our developers to do the fast/efficient thing instead.

addHandlersAndSink has the advantage that when you autocomplete to find your
widget methods, it appears directly under addHandlers.  However, it sounds
somewhat awkward, so a better name might be in order, hence this post...





-- 
"There are only 10 types of people in the world: Those who understand
binary, and those who don't"

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to