-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
Drop toggleClass(boolean)
and toggleClass(undefined)
signatures
#3388
Comments
Looks like I missed that the boolean signature was already deprecated in 3.0. I assume this means the undocumented Oh, and what's the target timeframe for removal? 4.0? I'd gladly submit a PR for its removal if the time is right. |
@silverwind yes, removal would be in 4.0 |
And thanks for offering! |
Ok, I'll close this as I'm sure you have that planned. If you want to keep it as a reminder for removal, feel free to reopen. |
I think it's good to have it as a reminder, we already have some issues created for 4.0.0 (https://github.com/jquery/jquery/milestone/7) but this one was missing. |
Thanks for the report! |
The behavior of this signature is not intuitive, especially if classes are manipulated via other ways between `toggleClass` calls. Fixes jquerygh-3388
PR: #4766 |
Can we evaluate if these signatures can be dropped? Here's a few arguments:
undefined
, which results in all classes being removed the first time it is called.__className__
data seems like a bad practice.attributes/classes
towardsdata
.The text was updated successfully, but these errors were encountered: