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

Re: [sensors] Call onchange only when data changes

From: Mikhail Pozdnyakov via GitHub <sysbot+gh@w3.org>
Date: Fri, 11 Nov 2016 13:33:03 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-259957946-1478871181-sysbot+gh@w3.org>
The way `onchange` is described now would fit more to an event handler
 called  `onreadingupdate` or  `onnewreading`  and thus it is 
conflicting with the requirement of shared reading instance as 
supposed to be called simultaneously for all the sensor instances.

Can we just specify that `onchange` is called:
1) when the data is actually changed
2) not more often than the given frequency

-- 
GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/152#issuecomment-259957946 using
 your GitHub account
Received on Friday, 11 November 2016 13:33:09 UTC

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