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

Remove classes at one time #20651

Merged
merged 3 commits into from
Nov 28, 2016
Merged

Remove classes at one time #20651

merged 3 commits into from
Nov 28, 2016

Conversation

J2TEAM
Copy link
Contributor

@J2TEAM J2TEAM commented Sep 6, 2016

Based on jQuery API Document, we can remove multiple classes at one time by using space-separated classes.

.removeClass(ClassName.ACTIVE)
.removeClass(direction)
.removeClass(directionalClassName)
$(activeElement).removeClass(ClassName.ACTIVE + ' ' + direction + ' ' + directionalClassName)

Choose a reason for hiding this comment

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

Unexpected string concatenation prefer-template

@bardiharborow
Copy link
Member

There is no need to file three separate PRs.

@J2TEAM
Copy link
Contributor Author

J2TEAM commented Sep 7, 2016

Thank you, @bardiharborow! I've merged others into this one.

@mdo mdo added this to the v4.0.0-alpha.6 milestone Nov 28, 2016
@mdo mdo merged commit 4f520c7 into twbs:v4-dev Nov 28, 2016
@mdo mdo mentioned this pull request Nov 28, 2016
@J2TEAM J2TEAM deleted the v4-js-carousel branch December 8, 2016 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants