- From: Keith Cirkel <notifications@github.com>
- Date: Wed, 13 Dec 2017 17:03:02 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 December 2017 17:04:06 UTC
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