- From: Rick Byers <notifications@github.com>
- Date: Thu, 17 Aug 2017 16:23:25 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 17 August 2017 16:24:33 UTC
RByers commented on this pull request.
> @@ -894,8 +894,8 @@ for historical reasons.
<pre class=idl>
[Constructor, Exposed=(Window,Worker)]
interface EventTarget {
- void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options);
- void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options);
+ void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = false);
Yeah, exactly. Our [implementation](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/events/EventTarget.cpp?type=cs&q=EventTarget::addEventListener&sq=package:chromium&l=318) also works that way too - getting the dictionary defaults automatically from the bindings generator, not explicitly in code (ignoring, for now, our special treatment of passive).
--
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/pull/492#discussion_r133762126
Received on Thursday, 17 August 2017 16:24:33 UTC