W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

Re: removeEventListener with only one passed parameter...

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 10 Jun 2014 10:22:52 -0400
Message-ID: <539714BC.7020801@mit.edu>
To: Domenic Denicola <domenic@domenicdenicola.com>, Anne van Kesteren <annevk@annevk.nl>
CC: public-script-coord <public-script-coord@w3.org>
On 6/10/14, 10:04 AM, Domenic Denicola wrote:
> I'm saying that your option 2 is better than your options 3, 4, or 5, as in normal JavaScript semantics null is not a default-triggerer or other type of special case.

Ah, I see.  I guess that depends on the API and where you expect people 
to get the things they're passing in and which cases you want to throw 
as opposed to doing something else...

-Boris
Received on Tuesday, 10 June 2014 14:23:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:21 UTC