- 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
+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 https://github.com/w3c/ambient-light/issues/15#issuecomment-257508638 using your GitHub account
Received on Tuesday, 1 November 2016 07:58:11 UTC