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

jQuery.when: Improved example#915

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

Open
AurelioDeRosa wants to merge1 commit intojquery:main
base:main
Choose a base branch
Loading
fromAurelioDeRosa:when

Conversation

@AurelioDeRosa
Copy link
Member

Fixesgh-904

$.when( $.ajax( "test.aspx" ), $.ajax( "page.aspx" ) ).then(function( res1, res2 ) {
alert( res1[2].status ); // Alerts 200
})
.fail(function( err1, err2 ) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we switch to.catch() here@gibson042? Also since the failure occurs as soon as any rejection occurs, I think it's possible thatres1 does not yet have a status ifres2 rejected. If a programming exception occurred they might even beError objects instead ofjQXHR objects! In real code you'd need to inspect both to sort it out.

Perhaps for the purposes of this example we could justalert("one or more requests failed").

Copy link
Member

Choose a reason for hiding this comment

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

Your instincts are good,@dmethvin. I agree on all counts.

@mgol
Copy link
Member

@AurelioDeRosa This PR is pretty old; will you be able to apply updates based on feedback?

@AurelioDeRosa
Copy link
MemberAuthor

Is this PR still relevant or should I just close it?

@mgol
Copy link
Member

@AurelioDeRosa Since you opened this PR thejQuery.when page got only one small update in commit3ab6720. So I think it's still very much relevant (and rebasing over current master shouldn't be hard).

@mgol
Copy link
Member

mgol commentedAug 1, 2018

@AurelioDeRosa what's the state of the PR? Will you have time to finish it?

Base automatically changed frommaster tomainFebruary 1, 2021 22:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@MansalolMansalolMansalol approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@AurelioDeRosa@mgol@dmethvin@gibson042@Mansalol@jquerybot@JSFOwner

[8]ページ先頭

©2009-2025 Movatter.jp