Skip to content

Using Promise-compatible instead of Deferred-compatible #567

Closed
@AurelioDeRosa

Description

@AurelioDeRosa

In the page about $.Deferred the text asserts:

In most cases where a jQuery API call returns a Deferred or Deferred-compatible object, such as jQuery.ajax() or jQuery.when()

I think it'd be better to call these objects Promise-compatible because objects like jqXHR implement the Promise interface (source), so they can't call methods like resolve() or reject(). I know this is a very minor change but it seems reasonable to me.

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