Skip to content
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

addClass/removeClass/toggleClass: add array as a valid argument #1073

Open
timmywil opened this issue Jan 2, 2018 · 0 comments
Open

addClass/removeClass/toggleClass: add array as a valid argument #1073

timmywil opened this issue Jan 2, 2018 · 0 comments

Comments

@timmywil
Copy link
Member

timmywil commented Jan 2, 2018

See jquery/jquery#3532

jQuery 3.3 introduces a new signature to these methods, allowing a single array of strings to be passed as the first/only argument.

Note: .removeClass( [] ) will not remove all classes. It is instead equivalent to .removeClass( "" ). Passing no arguments (e.g. .removeClass()) will remove all classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant