Re: [whatwg/dom] Improving ergonomics of events with Observable (#544)

FWIW in practice the DOM already makes the distinction of function-vs-object in the case of `addEventListener`:

```js
const handle = e => console.log('main!', e)
handle.handleEvent = e => console.log('property!', e)
document.body.addEventListener('click', x)

// Logs with `main!`
```

(Not suggesting WebIDL can't make the distinction, just pointing out there is a precedent here)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/544#issuecomment-351455422

Received on Wednesday, 13 December 2017 17:04:06 UTC