Skip to content

incorrect comment about jQuery.ajax returning a Promise #33

@ghost

Description

The async routing section on promises has a comment that states:

Note: jQuery AJAX methods return promises

This is incorrect. The jQuery API indicates $.getJSON and other low level methods return the jqXHR type. I think the code in this example should be updated with a modern example. This would avoid the overhead of teaching the potentially confusing history and semantics behind jQuery's request utilities.

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