Re: Some comments on the API

anne, sorry for being brief. 


Here is what I did:

var notification = navigator.mozNotification.createNotification(...);



On Oct 16, 2010, at 10:58 PM, Anne van Kesteren wrote:

> On Sat, 16 Oct 2010 23:10:00 +0200, Doug Turner <dougt@dougt.org> wrote:
>> navigator.notification
> 
> That is an object member, not an interface.
> 
> E.g. element.getBoundingClientRect() returns a ClientRect object. The ClientRect interface object is exposed as window.ClientRect for prototype purposes. Similarly, regardless of what we decide upon to create a Notification object, window.Notification (or some such) should probably exist so it can be prototyped. So we might as well use a constructor.
> 
> 
> -- 
> Anne van Kesteren
> http://annevankesteren.nl/
> 

Received on Sunday, 17 October 2010 06:08:08 UTC