
Learning jQuery - Fourth Edition

Deferred objects and their promises allow us to react to the completion of long-running tasks with a convenient syntax. They are discussed in detail in Chapter 11, Advanced Effects.
Function |
Description |
---|---|
|
Returns a new deferred object. |
|
Returns a promise object to be resolved when the given deferred objects are resolved. |
Method |
Description |
---|---|
|
Sets the state of the object to resolved. |
|
Sets the state of the object to resolved while making the keyword |
|
Sets the state of the object to rejected. |
|
Sets the state of the object to rejected while making the keyword |
|
Executes any progress callbacks. |
|
Executes any progress callbacks while making the keyword |
|
Returns a promise object corresponding to this deferred object. |
Method |
Description |
---|---|
|
Executes
|
|
Executes
|
|
Executes
|
|
Executes
|
|
Executes
|
|
Returns
|
|
Returns |
|
Returns |
|
Returns a new promise object which is resolved when the original promise is, optionally after filtering the object's status through a function. |
Change the font size
Change margin width
Change background colour