Skip to content

Attributes: Warn and fill .toggleClass( boolean ) #181

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

Closed
wants to merge 2 commits into from

Conversation

dmethvin
Copy link
Member

Fixes #175

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @markelog and @mgol to be potential reviewers

@dmethvin
Copy link
Member Author

Note to self: Need to update the upgrade guide, it currently says only the no-args form is deprecated but the single-boolean form is deprecated as well.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 90.217% when pulling f4ae007 on dmethvin:175-toggleclass into ee0a030 on jquery:master.

e.addClass( "testD testE" );
assert.ok( e.is( ".testD.testE" ), "Assert class present" );
e.toggleClass();
assert.ok( !e.is( ".testD.testE" ), "Assert class not present" );
Copy link
Member

Choose a reason for hiding this comment

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

Maybe test that e has none of those classes and not that it just doesn't have both at the same time?

Copy link
Member Author

Choose a reason for hiding this comment

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

These tests were copied from core pretty much as-is so I hesitate to add more assertions. Whatever it was doing before was lightly documented and we're deprecating it now.

Copy link
Member

Choose a reason for hiding this comment

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

OK then!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 90.27% when pulling e7d2688 on dmethvin:175-toggleclass into ee0a030 on jquery:master.

@dmethvin dmethvin closed this in 808bf5c Apr 29, 2016
@dmethvin dmethvin deleted the 175-toggleclass branch September 26, 2016 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants