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: Sat, 16 Oct 2010 23:07:32 -0700
Cc: "James Graham" <jgraham@opera.com>, "Web Notification WG" <public-web-notification@w3.org>
Message-Id: <22AB04D8-A1A5-4B84-BA7A-59050BE0C9E6@dougt.org>
To: "Anne van Kesteren" <annevk@opera.com>
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 GMT

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