Show:

Module: promises/jquery

promises/jquery

Extends

Methods

defer(){Deferred}

modules/promises/jquery.js, line 35

Constructs a deferred object.

See:
Returns:
Deferred object.

isPromise(obj){boolean}

modules/promises/jquery.js, line 76

Whether the given obj argument is a Promise.

Name Type Description
obj *

argument to check.

Promise(){Promise}

modules/promises/jquery.js, line 21

Constructs a promise object.

Returns:
Promise object.

reject(reason){Promise}

modules/promises/jquery.js, line 66

Returns a Promise object that is rejected with the given reason.

Name Type Description
reason Error

the reason for rejecting the Promise.

when(value){Promise}

modules/promises/jquery.js, line 56

Converts any given argument into a Promise. If that argument is a Promise it returns it.

Name Type Description
value *

value or promise to convert into a thenable.

See:

whenAll(promises){Promise}

modules/promises/jquery.js, line 43

Returns a Promise that is resolved once all Promises in the promises list are resolved, or rejected if one of those is rejected.

Name Type Description
promises Array

array of Promises and/or values.

See: