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 07:58:02 +0200
To: "Doug Turner" <dougt@dougt.org>
Cc: "James Graham" <jgraham@opera.com>, "Web Notification WG" <public-web-notification@w3.org>
Message-ID: <op.vkphi0r264w2qv@anne-van-kesterens-macbook-pro.local>
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
Received on Sunday, 17 October 2010 05:58:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:13 UTC