Re: [sensors] Dependency on [DOM] due to inheriting from EventTarget

@zenparsing if the web had EventEmitter and all sensor classes where 
subclasses of EventEmitter, your example would become: 

```js
sensor.once("change", x => {
  // do whatever, but only once
});
```





-- 
GitHub Notif of comment by rwaldron
See https://github.com/w3c/sensors/issues/21#issuecomment-112874465

Received on Wednesday, 17 June 2015 16:49:25 UTC