W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] Add a threshold option

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 Jun 2015 13:47:22 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-109297011-1433512041-sysbot+gh@w3.org>
Idle idea, not sure if it's a good one: add the following to your 
proposal.

```js
new Sensor({
  change: Sensor.threshold(5, "latitude")
});

new Sensor({
  change: Sensor.threshold(5) // defaults to "value"
});
```

-- 
GitHub Notif of comment by domenic
See https://github.com/w3c/sensors/issues/25#issuecomment-109297011
Received on Friday, 5 June 2015 13:47:26 UTC

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