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

> @rwaldron let's just do it. How is it that `fetch()` gets to 
supersede XHR, but we don't get to modernize the `EventTarget` 
nonsense? 

Problem with EventTarget is it's _everywhere_. A possible strategy 
might be to define `EventEmitter` then, in DOM, do:

```
interface EventTarget : EventEmitter {
  // …
}
```

and see where that takes us. Of course, we'd just use it directly 
here.

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

Received on Thursday, 11 June 2015 21:24:11 UTC