May 2017
Intermediate to advanced
448 pages
10h 10m
English
|
Method |
Description |
|
.done(callback) |
Executes callback when the object is resolved. |
|
.fail(callback) |
Executes callback when the object is rejected. |
|
.catch(callback) |
Executes callback when the object is rejected. |
|
.always(callback) |
Executes callback when the object is resolved or rejected. |
|
.then(doneCallbacks, failCallbacks) |
Executes doneCallbacks when the object is resolved, or failCallbacks when the object is rejected. |
|
.progress(callback) |
Executes callback each time the object receives a progress notification. |
|
.state() |
Returns 'pending', 'resolved', or 'rejected' depending on the current state. |
Read now
Unlock full access