- From: Shiino Yuki <notifications@github.com>
- Date: Tue, 10 Apr 2018 13:23:03 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 10 April 2018 13:23:29 UTC
I don't know well about Blink's implementation of event dispatching and need investigation on #334.
> we lookup the global once and then use it throughout?
IIUC, it wouldn't make much sense for window.event.
```
eventTargetInContextX.addEventListener(type, funcInContextA, false);
eventTargetInContextX.addEventListener(type, funcInContextB, false);
```
We'd like both of `funcInContextA` and `funcInContextB` to observe their own `window.event`, right? Then, we need to use the listener's global object, I think. I'm supposing the following use case.
```
function funcInContextA() {
event; // => window.event
}
```
Given that this is a typical use case (and why we want to support window.event), then it should be the listener function's associated global object.
--
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/334#issuecomment-380096055
Received on Tuesday, 10 April 2018 13:23:29 UTC