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: Fri, 15 Oct 2010 12:56:38 -0700
Cc: Web Notification WG <public-web-notification@w3.org>
Message-Id: <316B6D56-98B6-4773-8F72-CA737DB46578@dougt.org>
To: James Graham <jgraham@opera.com>

On Oct 15, 2010, at 4:09 AM, James Graham wrote:

> I wonder what the reason for the NotificationCenter design is. Does having a createNotification factory function buy us anything over just having a constructor so we can do something like
> 
> var notification = new Notification(iconUrl, title, body)

Isn't there a potential namespace problem?  Notification is going to be in the global namespace, right?
Received on Friday, 15 October 2010 19:57:12 GMT

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