🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Apr 29, 2020

Summary

The API has been deprecated in 3.5.0 so it can be removed in 4.0.0.

Ref gh-4461

Checklist

The API has been deprecated in 3.5.0 so it can be removed in 4.0.0.

Ref jquerygh-4461
@mgol mgol added this to the 4.0.0 milestone Apr 29, 2020
@mgol mgol self-assigned this Apr 29, 2020
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label May 5, 2020
Copy link
Member

@dmethvin dmethvin left a 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.

@mgol
Copy link
Member Author

mgol commented May 11, 2020

@dmethvin String.prototype.trim.apply(s) works if s is a number or an object, etc. However, it throws if s is null or undefined. So it's not a complete replacement.

Maybe we need to update the note in Migrate?

@dmethvin
Copy link
Member

We can just add a note in the warnings.md there explaining that something like String.prototype.trim.apply(s==null? "" : s) works perhaps? In any case I think we can handle it in Migrate.

@mgol
Copy link
Member Author

mgol commented May 12, 2020

@dmethvin that sounds good!

@mgol
Copy link
Member Author

mgol commented May 18, 2020

@dmethvin I submitted a PR with the text change: jquery/jquery-migrate#358.

@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels May 18, 2020
@mgol mgol merged commit 0b676ae into jquery:master May 18, 2020
@mgol mgol deleted the trim-removal branch May 18, 2020 21:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

4 participants