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

Re: [sensors] Should SensorReadingEvent carry reading payload?

From: Rick Waldron via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 May 2016 20:12:03 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-219533234-1463429522-sysbot+gh@w3.org>
```js
sensorB.onchange = event => 
someGenericDataStoringOperation(this.reading);
```


Wrong `this` ;)

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

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