-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventDispatcher converted to es6 #20943
Conversation
Note that this change could have downstream effects on classes that extend Object3D: Lines 115 to 119 in 670b1e9
It may not — I don't see any calls to |
Yeah, I suspect this change will break everything. @treblereel Have you tested this? |
@mrdoob yeap, i my case all good. i also checked demos and got no issues |
Hey, quick question on this one: Could we simply extend EventTarget and add the hasEventListener function? class EventDispatcher extends EventTarget {
hasEventListener( type, listener ) {
// ...
}
} |
Does not work in |
Actually it was added into node.js v15.0.0 |
ok, good to know, closing this PR |
Just want to add that a benchmark showed that using |
oh shoot. that's a big difference. Thank you for pointing that one out @Mugen87. Let's stick with what we got |
Related issue: #19986