Re: Some comments on the API

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 UTC