Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
mgol merged 1 commit intojquery:masterfrommgol:trim-removal
May 18, 2020
Merged

Conversation

@mgol
Copy link
Member

Summary

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

Refgh-4461

Checklist

The API has been deprecated in 3.5.0 so it can be removed in 4.0.0.Refjquerygh-4461
@mgolmgol added this to the4.0.0 milestoneApr 29, 2020
@mgolmgol self-assigned thisApr 29, 2020
Copy link
Member

@timmywiltimmywil left a comment

Choose a reason for hiding this comment

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

LGTM

@mgolmgol added the Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelMay 5, 2020
Copy link
Member

@dmethvindmethvin 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 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
Copy link
MemberAuthor

@dmethvinString.prototype.trim.apply(s) works ifs is a number or an object, etc. However, it throws ifs isnull orundefined. 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 thewarnings.md there explaining that something likeString.prototype.trim.apply(s==null? "" : s) works perhaps? In any case I think we can handle it in Migrate.

@mgol
Copy link
MemberAuthor

@dmethvin that sounds good!

@mgol
Copy link
MemberAuthor

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

@mgolmgol removed Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labelsMay 18, 2020
@mgolmgol merged commit0b676ae intojquery:masterMay 18, 2020
@mgolmgol deleted the trim-removal branchMay 18, 2020 21:20
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 7, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@dmethvindmethvindmethvin approved these changes

@timmywiltimmywiltimmywil approved these changes

+1 more reviewer

@roiLeoroiLeoroiLeo approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@mgolmgol

Milestone

4.0.0

Development

Successfully merging this pull request may close these issues.

4 participants

@mgol@dmethvin@timmywil@roiLeo

[8]ページ先頭

©2009-2025 Movatter.jp