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

Re: Some comments on the API

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 17 Oct 2010 09:44:27 +0200
To: "Doug Turner" <dougt@dougt.org>
Cc: "James Graham" <jgraham@opera.com>, "Web Notification WG" <public-web-notification@w3.org>
Message-ID: <op.vkpmgcv264w2qv@anne-van-kesterens-macbook-pro.local>
On Sun, 17 Oct 2010 08:07:32 +0200, Doug Turner <dougt@dougt.org> wrote:
> anne, sorry for being brief.
>
>
> Here is what I did:
>
> var notification = navigator.mozNotification.createNotification(...);

Yes, sure, I get that. What I am saying is that the interface of the  
object the notification variable in your example holds is also exposed in  
the global scope. Per the current specification it would be at  
window.Notification, to be exact. So given that, we could make that into a  
constructor as well (allowing for x = new Notification) and remove the  
need for extending navigator.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Sunday, 17 October 2010 07:45:07 GMT

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