Update EventTarget according to the latest spec#1959
Update EventTarget according to the latest spec#1959vobruba-martin wants to merge 1 commit intogoogle:masterfrom
Conversation
9fabaa5 to
0f50085
Compare
0f50085 to
1b68e11
Compare
1b68e11 to
394a366
Compare
|
@MatrixFrog @Dominator008 What's the likelihood of this PR getting accepted? We are running into the same issue where we like to use the new Event API and considering we can't override builtin externs in our custom extern with a different signature, we are kind of stuck. |
|
Sounds good based on a quick glance. I can probably review it this week if someone else doesn't get to it first. |
|
This turns out to be harder to land than I thought. Every subclass of EventTarget has to be updated if it has the |
|
Thank you! |
|
Getting close. |
394a366 to
a3ebc09
Compare
|
Rebased because of this commit 3b23f1e @MatrixFrog Do you have any ETA on this? |
a3ebc09 to
0ede3a5
Compare
|
Rebased |
|
Waiting on a response from an internal team, so unfortunately I do not. |
0ede3a5 to
bad78c1
Compare
|
@MatrixFrog Any update? :-) |
|
I'm going to really really try to get this in by next week. |
|
This is landed internally. However, don't get excited yet; we might need to roll it back for some reason. |
…Closure Library as well, because it is no longer possible for a class to implement the EventTarget interface while also extending the goog.events.EventTarget class. Closes google/closure-compiler#1959 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149657444
EventTargetis currently defined according to DOM Level 2 spec and this is causing some problems:EventTargetbut do not override its methods. For exampleWorkerGlobalScope:This PR updates
EventTargetaccording to the latest spec.