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

Re: Some comments on the API

From: Doug Turner <dougt@dougt.org>
Date: Mon, 18 Oct 2010 18:14:14 -0700
Cc: Ian Hickson <ian@hixie.ch>, Anne van Kesteren <annevk@opera.com>, James Graham <jgraham@opera.com>, Web Notification WG <public-web-notification@w3.org>
Message-Id: <0CE1F03D-054B-410D-84AE-27F066B04DA5@dougt.org>
To: Alex Russell <slightlyoff@google.com>
yeah, i can agree with that.

On Oct 18, 2010, at 6:12 PM, Alex Russell wrote:

> 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:14:54 GMT

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