W3C home > Mailing lists > Public > public-web-notification@w3.org > June 2012

Re: Updated draft

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 11 Jun 2012 22:47:07 +0200
Message-ID: <CADnb78h2dUb_2Wi6ASPsze6YGN4N2ghNL82Y76f4J5YViMyWnQ@mail.gmail.com>
To: Doug Turner <dougt@dougt.org>
Cc: Jon Lee <jonlee@apple.com>, Web Notification WG <public-web-notification@w3.org>
On Mon, Jun 11, 2012 at 10:41 PM, Doug Turner <dougt@dougt.org> wrote:
> no, if you had options, you'd have to do something verbose like
>
> new Notification(someExistingObjectThatHasATitleAttribute.title,
> someExistingObjectThatHasATitleAttribute);

Yeah I was thinking about this as well. I decided to follow what we
did for event constructors where the one thing that must be supplied
is an argument of its own (Event(type, everythingElse)). We can merge
them if people prefer that and throw an exception of sorts if the
title member is missing though I personally prefer keeping it as is.


-- 
Anne — Opera Software
http://annevankesteren.nl/
http://www.opera.com/
Received on Monday, 11 June 2012 20:48:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 December 2012 14:48:28 GMT