W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2013

Re: Better event listeners

From: Jake Verbaten <raynos2@gmail.com>
Date: Thu, 10 Jan 2013 11:06:19 -0800
Message-ID: <CAMCMjp2mEMP6EC5BtpXnHs-bUjTmouFd-f2xyWyqoJHmvJAjMw@mail.gmail.com>
To: brandon.wallace@yahoo.com
Cc: Glenn Maynard <glenn@zewt.org>, Anne van Kesteren <annevk@annevk.nl>, Domenic Denicola <domenic@domenicdenicola.com>, "www-dom@w3.org" <www-dom@w3.org>
Putting properties on a function is valid. There's plenty of room for
future enhancements.
On Jan 10, 2013 5:38 AM, <brandon.wallace@yahoo.com> wrote:

> > I meant that, if an object with methods were returned, the method should
> be named "off" as opposed to "cancel" or "stop" etc. Agreed that a function
> instead of an object is more elegant, however.
>
> I believe it has been mentioned that an object leaves the door open for
> future enhancements.  Returning only a function limits your options for
> future enhancements.
>
> --
> Brandon
Received on Thursday, 10 January 2013 19:06:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 January 2013 19:06:48 GMT