Skip to content

deferred.always parameters changing based on success? #763

Closed
@axos88

Description

@axos88

Hello,

I am reading this on the jquery.ajax documentation page:

jqXHR.always(function( data|jqXHR, textStatus, jqXHR|errorThrown ) { });
An alternative construct to the complete callback option, the .always() method replaces the deprecated .complete() method.

This is a documentation error or a bad joke, right?
The parameter order changing based on wether the query succeeds or not?

How is one to determine the actual status code without actually knowing if it was successful or not?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions