- Notifications
You must be signed in to change notification settings - Fork20.5k
Deprecated: Remove jQuery.trim#4695
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
The API has been deprecated in 3.5.0 so it can be removed in 4.0.0.Refjquerygh-4461
timmywil left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
dmethvin left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. I know there was some discussion thatjQuery.trim(s) is not equivalent tos.trim() whens is something other than a string. However, those are non-documented uses andString.prototype.apply(s) should work for those in any case since that's basically what we are doing here.
mgol commentedMay 11, 2020
@dmethvin Maybe we need to update the note in Migrate? |
dmethvin commentedMay 12, 2020
We can just add a note in the |
mgol commentedMay 12, 2020
@dmethvin that sounds good! |
mgol commentedMay 18, 2020
@dmethvin I submitted a PR with the text change:jquery/jquery-migrate#358. |
Summary
The API has been deprecated in 3.5.0 so it can be removed in 4.0.0.
Refgh-4461
Checklist
New tests have been added to show the fix or feature works