W3C home > Mailing lists > Public > public-web-notification@w3.org > October 2010

Re: Some comments on the API

From: Alex Russell <slightlyoff@google.com>
Date: Mon, 18 Oct 2010 18:12:31 -0700
Message-ID: <AANLkTim8DsJFutCumegoBnw9KbprAFBj4YP7vduqtmXh@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Doug Turner <dougt@dougt.org>, Anne van Kesteren <annevk@opera.com>, James Graham <jgraham@opera.com>, Web Notification WG <public-web-notification@w3.org>
I strongly prefer constructor-driven creation, perhaps supporting
new-less calls that also return new instances. The
"source.createThinger(....)" pattern needs to die in a fire.

Regards

On Monday, October 18, 2010, Ian Hickson <ian@hixie.ch> wrote:
> On Sat, 16 Oct 2010, Doug Turner wrote:
>>
>> Here is what I did:
>>
>> var notification = navigator.mozNotification.createNotification(...);
>
> That's a bit verbose... in the standard version, can we just use a
> constructor? e.g.
>
>    var notification = new Notification();
>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
Received on Tuesday, 19 October 2010 01:13:02 GMT

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