🌐 AI搜索 & 代理 主页
Skip to content

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

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

Diff best viewed with whitespace changes hidden: https://github.com/jquery/jquery/pull/4766/files?w=1

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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

Drop toggleClass(boolean) and toggleClass(undefined) signatures

4 participants