[sensors] Call onchange only when data changes

pozdnyakov has just created a new issue for 
https://github.com/w3c/sensors:

== Call onchange only when data changes ==
The spec says: "onchange is an EventHandler which is called whenever a
 new reading is available."
Would it be better if `onchange` was called only when reading values 
(except timestamp) are actually changed? User most probably is 
interested in data fields changing, so calling `onchange` only on 
actual data change would reduce client code and save some cpu 
instructions.

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/152 using your GitHub account

Received on Friday, 11 November 2016 12:03:56 UTC