Re: ISSUE-99 (listen): Add shorter method names for addEventListener, et al? [DOM3 Events]

Starting shortening member names can open the Pandora box. What about getElementsByTagName, querySelector etc.? I think at this point of time it is better to avoid such an initiative.

Sergey/




--- On Thu, 27/8/09, Web Applications Working Group Issue Tracker <sysbot+tracker@w3.org> wrote:

> From: Web Applications Working Group Issue Tracker <sysbot+tracker@w3.org>
> Subject: ISSUE-99 (listen): Add shorter method names for addEventListener, et al? [DOM3 Events]
> To: public-webapps@w3.org
> Date: Thursday, 27 August, 2009, 2:09 AM
> 
> ISSUE-99 (listen): Add shorter method names for
> addEventListener, et al? [DOM3 Events]
> 
> http://www.w3.org/2008/webapps/track/issues/99
> 
> Raised by: Doug Schepers
> On product: DOM3 Events
> 
> Alex Russell suggests that since addEventListener() and
> removeEventListener() are so commonly used, it would be good
> to add a lump of syntactic sugar by aliasing them with
> shorter names: listen() and unlisten().  He also
> suggests adding listenOnce() as a further shortcut method:
> 
> <http://www.w3.org/mid/6fc58d0d0904241431n290e8166m1e126cc02e735564@mail.gmail.com>
> 
> 
> 
> 


      

Received on Thursday, 27 August 2009 09:47:39 UTC