Re: Some comments on the API

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 UTC