Skip to content
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

Tabs: Use standard promise methods for jqXHR #1455

Closed
wants to merge 2 commits into from

Conversation

scottgonzalez
Copy link
Member

The old success(), error() and complete() methods have been deprecated for a
while and have been removed in upstream master.

The old success(), error() and complete() methods have been deprecated for a
while and have been removed in upstream master.
@@ -843,7 +843,7 @@ return $.widget( "ui.tabs", {
that._trigger( "load", event, eventData );
}, 1 );
})
.complete(function( jqXHR, status ) {
.always(function( jqXHR, status ) {

Choose a reason for hiding this comment

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

The arguments that the always function accepts is not the same as complete. jqXHR is only the first argument in the error case; in the success case, it's the last.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, updated.

@scottgonzalez
Copy link
Member Author

Ignore Travis, it keeps trying to pull the branch from the wrong repo and failing.

@jzaefferer
Copy link
Member

👍

@scottgonzalez scottgonzalez deleted the ajax-promise branch February 24, 2015 15:25
scottgonzalez added a commit that referenced this pull request Mar 10, 2015
The old success(), error() and complete() methods have been deprecated for a
while and have been removed in upstream master.

Closes gh-1455
(cherry picked from commit c1dfb98)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants