W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

RE: A new hack for singleton objects

From: Domenic Denicola <d@domenic.me>
Date: Tue, 17 Mar 2015 11:57:32 +0000
To: Anne van Kesteren <annevk@annevk.nl>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, Mounir Lamouri <mounir@lamouri.fr>, Alex Russell <slightlyoff@google.com>
Message-ID: <CY1PR0501MB1369584D3A0B0EE60E2B608ADF030@CY1PR0501MB1369.namprd05.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 17 March 2015 11:58:10 UTC