Skip to content

jQuery.when($.ajax).then example is wrong #82

Closed
@billmag

Description

@billmag

The example code on this page:
http://api.jquery.com/jQuery.when/

Says that in $.when($.ajax(...).then(function (arg) {}) arg is ["success", statusText, jqXHR]. However, the arguments available to that function should be the same as provided to $.ajax.success which is three separate arguments: data, textStatus, and jqXHR.

Metadata

Metadata

Assignees

No one assigned

    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