W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

Re: [DOM Level 3 Events] optionality of the capture argument in addEventListener/removeEventListener

From: Ojan Vafai <ojan@chromium.org>
Date: Fri, 1 Oct 2010 10:20:32 -0700
Message-ID: <AANLkTimajd8BcZB3xmR0GgHe6Pyd-zWuKQTht_0wotUS@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Olli@pettay.fi, Sergey Ilinsky <sergey@ilinsky.com>, www-dom@w3.org
On Wed, Sep 29, 2010 at 8:31 PM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Wed, Sep 29, 2010 at 10:04 AM, Olli Pettay <Olli.Pettay@helsinki.fi>
> wrote:
> > I don't support this kind of change.
> > It happens way too often that people don't think about the phase, and
> that
> > leads to bugs.
> I don't think requiring the last argument is helping a whole lot with
> that right now. I've heard multiple times developers say:
> "I don't know why I have to specify the last 'false' value, but I have
> to do that everywhere when I call addEventListener".

In addition to this, I've seen many developers toggle the boolean value
because it happened to fix a specific bug without understanding why (and it
usually caused other bugs). Forcing people to use the boolean is not
synonymous with forcing them to understand it.

Received on Friday, 1 October 2010 17:29:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:16 UTC