W3C home > Mailing lists > Public > public-device-apis-log@w3.org > November 2016

Re: [ambient-light] What illuminance value should be reported for stopped sensor?

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Tue, 01 Nov 2016 07:58:04 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-257508638-1477987082-sysbot+gh@w3.org>
+1 for `sensor.getLatestReading();` that will always return clone of 
an 'internal slot latestReading'  associated with sensor instance. 
Making references to objects that are owned by Sensor might bring side
 effects, for example, if sensor doesn't have event listeners, goes 
out of scope and garbage collected by JS engine, it is unclear what to
 do with objects that refer to Sensor.reading.

GitHub Notification of comment by alexshalamov
Please view or discuss this issue at 
using your GitHub account
Received on Tuesday, 1 November 2016 07:58:11 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:52 UTC