W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2014

Re: [whatwg] Proposal: Wake Lock API

From: Marcos Caceres <w3c@marcosc.com>
Date: Wed, 20 Aug 2014 14:54:35 -0400
To: Anne van Kesteren <annevk@annevk.nl>
Message-ID: <F8391CE4044C45BAAD42A5143EC88133@marcosc.com>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Olli Pettay <olli@pettay.fi>, Mounir Lamouri <mounir@lamouri.fr>, Jonas Sicking <jonas@sicking.cc>

On Wednesday, August 20, 2014 at 11:14 AM, Anne van Kesteren wrote:

> On Wed, Aug 20, 2014 at 5:09 PM, Marcos Caceres <w3c@marcosc.com (mailto:w3c@marcosc.com)> wrote:
> > And of course Object.observe would work really nicely, but I've been told a bunch of times by various people that we can't use Object.observe on DOM APIs (this *really* sucks).
> Not by default, but we can make it work as I said. We wouldn't do it
> for innerHTML, but we might for <input>.value or some such.
Ok, if we get [Observable] in WebIDL, then the API basically becomes something neat like:

partial interface Document {
    [Observable] attribute boolean keepScreenOn;   

So nice. 
Received on Wednesday, 20 August 2014 18:55:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:22 UTC