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

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

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 Jun 2015 21:24:09 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-111281599-1434057848-sysbot+gh@w3.org>
> @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

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