You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Angular documentation redirects to jQuery 1.4, which states that removeClass should be able to take a function as a parameter. Also they state that if no parameter is provided removeClass should remove all classes.
This is currently not the case.
I am submitting a pull request to fix this issue.
The text was updated successfully, but these errors were encountered:
It's not jQuery 1.4, it's the latest 1.x jQuery (currently 1.9).
That said, there seems to be indeed a difference between the add/removeClass() signatures/behaviour.
I'm not sure if we should just document it, or if it's worth implementing.
(If we do implement it, we have to be consistent with the jQuery implementation though.)
You are correct, I misspoke: the ability to pass in functions or no parameters was introduced in jQuery 1.4 but we need it to be compliant with the the latest version.
#12852 should fix this in a manner that is consistent with the jQuery implementation.
Angular documentation redirects to jQuery 1.4, which states that
removeClass
should be able to take a function as a parameter. Also they state that if no parameter is providedremoveClass
should remove all classes.This is currently not the case.
I am submitting a pull request to fix this issue.
The text was updated successfully, but these errors were encountered: