RE: A new hack for singleton objects

From: Anne van Kesteren [mailto:annevk@annevk.nl] 

> The Notifications API also puts statics on Notification. Before we got new URL(), we had URL.createObjectURL(). CSS has CSS.escape() and friends. I don't think this is really a new pattern.

Notifications API is different, since Notification is a real class, and having statics on it makes sense. But the other examples help, indeed, and I hadn't thought of them. Thanks.

Received on Tuesday, 17 March 2015 11:58:09 UTC