Re: Some comments on the API

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 UTC