/ jquery Public
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Fix #12411, .removeClass(undefined) is a chaining no-op. Close gh-913.
.removeClass() //removes all classes, as documented .removeClass(window.nonExistentVariable) // removes nothing
- Loading branch information
Showing 2 changed files with 10 additions and 1 deletion.
Maybe additionally assert that the return value is strictEqual to $div? That way it doesn't just assert it being a no-op, but it also actually being chainable.
edit: Done in pull #1008.