-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Use cached noop
function
#33496
Use cached noop
function
#33496
Conversation
I recall noticing this in the past but forgot to make a separate PR for sure. :) That being said, shouldn't our tests have caught this? I mean |
@XhmikosR I suppose, you remember this |
Yeah, that's another change :) But I still wonder why this wasn't caught :/ |
7da4c18
to
e0fd67d
Compare
Not sure about that but that should be considered in another PR IMO (If that is not needed) @GeoSot. 🙂 |
noop
function returns a new function every time whenever it is called. So just use thenoop
function, not the value returned by it (So that the event handler can remove the same function that was attached before).Ref: #33451 (comment)