Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(jqLite): properly toggle multiple classes #6448

Closed

Conversation

pkozlowski-opensource
Copy link
Member

Impl could be approached differently, I guess, but yeh, the issue is here as demonstrated by tests.

Fixes #4467

@pkozlowski-opensource
Copy link
Member Author

Strange, TravisCI gets upset while Jenkins is quite happy:
http://ci.angularjs.org/job/angular.js-pawel/144/

@IgorMinar
Copy link
Contributor

@pkozlowski-opensource there was an issue with dgeni, that's why travis got upset.

@IgorMinar IgorMinar self-assigned this Feb 27, 2014

it('should allow toggling multiple classes without a condition', function () {
var selector = jqLite([a, b]);
expect(selector.toggleClass('abc cde')).toEqual(selector);
Copy link
Contributor

Choose a reason for hiding this comment

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

always use toBe instead of toEqual unless you mean it.

@IgorMinar
Copy link
Contributor

please make the requested changes and merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

element.toggleClass() does not remove one of classnames
2 participants