Skip to content

Update $.when example #116

@mikesherov

Description

@mikesherov

the current example says:

$.when( $.ajax("test.aspx") ).then(function(ajaxArgs){ 
     alert(ajaxArgs[1]); /* ajaxArgs is [ "success", statusText, jqXHR ] */
});

However, when a single deferred is passed to $.when, the args are not an array of arguments arrays, but rather a single array of arguments. The example simply needs to be updated to reflect this:

See here for more info: http://bugs.jquery.com/ticket/12348

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions