Skip to content

Documentation issue in jQuery.when #50

@mrazzari

Description

@mrazzari

Looking at the docs for jQuery.when here's the first example:

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

But when testing this... ajaxArgs is not an array. Instead, it's the response's data!

Here's a fiddle for testing: http://jsfiddle.net/mrazzari/XDbS7/

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