W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

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

From: Web Applications Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Thu, 27 Aug 2009 06:09:27 +0000 (GMT)
To: public-webapps@w3.org
Message-Id: <20090827060927.0C22E6B646@tibor.w3.org>

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 06:14:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT