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

[sensors] Example code omits call to .start()

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Oct 2016 20:09:08 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-181757082-1475870946-sysbot+gh@w3.org>
jyasskin has just created a new issue for 

== Example code omits call to .start() ==
https://w3c.github.io/sensors/#background has two examples that 
construct a sensor object and attach event listeners, but don't call 
.start(). https://w3c.github.io/ambient-light/#examples does call 
.start(), and it looks like that's necessary in order to actually fire
 the first event and start listening.

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/140 using your GitHub account
Received on Friday, 7 October 2016 20:09:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC