Skip to content

Attributes: Drop the toggleClass(boolean|undefined) signature #4766

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

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented Jul 29, 2020

Summary

Attributes: Drop the toggleClass(boolean|undefined) signature.

The behavior of this signature is not intuitive, especially if classes are
manipulated via other ways between toggleClass calls.

Fixes gh-3388

-86 bytes

Checklist

Sorry, something went wrong.

The behavior of this signature is not intuitive, especially if classes are
manipulated via other ways between `toggleClass` calls.

Fixes jquerygh-3388
@mgol
Copy link
Member Author

mgol commented Jul 30, 2020

Copy link
Member

@dmethvin dmethvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Aug 25, 2020
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Aug 31, 2020
@mgol mgol removed the Needs review label Aug 31, 2020
@mgol mgol merged commit a442110 into jquery:master Sep 1, 2020
@mgol mgol deleted the toggle-class-boolean-undefined branch September 1, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Drop toggleClass(boolean) and toggleClass(undefined) signatures
4 participants