-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Widget: Avoid tracking remove event handlers for classes options #1769
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
Conversation
|
👍 |
Updated to avoid leaking event listeners. |
I also find this issue, thanks for your works ~~ |
We might need to add a |
979e468
to
e8767c9
Compare
Updated to actually work. I confirmed that this fixes all reported issues with the |
Fixes #15078 Fixes #15082 Fixes #15095 Fixes #15136 Fixes #15152
e8767c9
to
c87ee3b
Compare
var isTracked = $.map( that.classesElementLookup, function( elements ) { | ||
return elements; | ||
} ) | ||
.some( function( elements ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a single element, so the name should be singular, though element is already taken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a collection of elements for a single class.
Fixes #15078 Fixes #15082 Fixes #15095 Fixes #15136 Fixes #15152 Closes gh-1769
Fixes #15082
Fixes #15095