-
Notifications
You must be signed in to change notification settings - Fork 20.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 our terms of service and privacy 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. Ref jquerygh-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 that jQuery.trim(s) is not equivalent to s.trim() when s is something other than a string. However, those are non-documented uses and String.prototype.apply(s) should work for those in any case since that's basically what we are doing here.
|
@dmethvin Maybe we need to update the note in Migrate? |
|
We can just add a note in the |
|
@dmethvin that sounds good! |
|
@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.
Ref gh-4461
Checklist
New tests have been added to show the fix or feature works