+1, enthusiasticly

On Tue, May 12, 2009 at 11:11 AM, John Tamplin <[email protected]> wrote:

> There has been a fair amount of confusion over the use of Hyperlink (see issue
> 1960 <http://code.google.com/p/google-web-toolkit/issues/detail?id=1960>for 
> just one example).  I am adding Javadoc and an assertion to help point
> people in the right direction, but I think the main confusion (aside from
> the name, which is probably too late to change) stems from the inclusion of
> click handlers on Hyperlink.  If the role of Hyperlink is to alter the
> history state, I can't think of any reason a well-designed history app would
> need it (it would instead set the listeners on the history state so it would
> work the same regardless of how that history state was achieved).  If for
> some reason an app does need the functionality, it just uses Anchor instead
> and does History.newItem() in its listener.
>
> So, I propose to deprecate {add,remove}Click{Handler,Listener} with a
> pointer to using Anchor instead.
>
> Any objections?
>
> --
> John A. Tamplin
> Software Engineer (GWT), Google
>

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

Reply via email to