W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2006

Optional method arguments in the DOM

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 15 Jun 2006 18:36:29 +0200
Cc: "DOM mailing list" <www-dom@w3.org>
To: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.ta64e3cg64w2qv@id-c0020.driveway.uu.nl>

Hi,

What do implementors and authors think of having more optional method  
arguments in the DOM where that makes sense? Take as example  
addEventListener. The last argument could be made to default to false for  
example when omitted so you only have to provide an event type and a  
listener when you don't need to use capture. Supporting optional arguments  
would of course only apply to bindings that actually support that.

Cheers,

Anne


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 15 June 2006 16:36:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:09 UTC