Re: Some comments on the API

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 05:58:41 UTC