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

Re: [sensors] Should SensorReadingEvent carry reading payload?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 May 2016 20:09:27 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-219532540-1463429366-sysbot+gh@w3.org>
You should just be able to do this instead, no:

```js
sensorA.onchange = event => 
someGenericDataStoringOperation(this.reading);
sensorB.onchange = event => 
someGenericDataStoringOperation(this.reading);
```

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/103#issuecomment-219532540 using
 your GitHub account
Received on Monday, 16 May 2016 20:09:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:08 UTC