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

Re: [whatwg] Proposal: Wake Lock API

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 20 Aug 2014 10:33:42 +0200
Message-ID: <CADnb78iOtBTnKKMKLSdfay5eZ9iaRoU3M+-ogPJ791=nYHFf8A@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Mounir Lamouri <mounir@lamouri.fr>, Marcos Caceres <w3c@marcosc.com>
On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> FWIW, the web platform sorely needs a construct for "readonly state
> variable + event whenever the state changes". I.e. some form of
> observable which remembers the last produced value. I had hoped the
> Streams would get us closer to that, but the current definition seems
> to be too different.

Isn't that Object.observe() with custom records produced by the
specific object you are defining for the property you want to enable
this for (in this case held, it seems like)?

Received on Wednesday, 20 August 2014 08:34:08 UTC

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