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

.removeClass() should remove all occurrences of class name #64

Merged

Conversation

davidchambers
Copy link
Contributor

We're currently in line with jQuery (as of 1.7.2, at least), but in my view this behaviour is erroneous:

> $('<b class="x x">').removeClass('x').hasClass('x')
true

.removeClass() should remove all occurrences of the class name. I'm happy to create a pull request if you agree.

@matthewmueller
Copy link
Member

Although I agree, I think it's more important to provide a consistent API with jQuery. If jQuery adapts this, I'll be happy to implement this change.

@davidchambers
Copy link
Contributor Author

That makes sense. I've opened a ticket in jQuery's issue tracker.

@davidchambers
Copy link
Contributor Author

ping @matthewmueller

@matthewmueller matthewmueller merged commit 509ed35 into cheeriojs:master Aug 3, 2012
@matthewmueller
Copy link
Member

Finally reviewed and merged this in. Thanks man.

@davidchambers
Copy link
Contributor Author

Excellent!

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

Successfully merging this pull request may close these issues.

2 participants