Re: [sensors] Adding a sensor.activated attribute

For the record, here's how subscribing to sensor polling works:

```js
let s = new FooSensor()
s.start();
s.onchange = e => console.log(e.reading);
```

and here's how you'd get a single reading:

```js
new FooSensor().read().then(reading => console.log(reading));
```

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/95#issuecomment-199411567 using 
your GitHub account

Received on Monday, 21 March 2016 18:20:26 UTC