jQuery deferred.notify() method
Definition and Usage
The deferred.notify() function is used to call the progress callbacks (progressCallbacks) on a deferred object, given an argument.
**Note:** 1. Typically, only the creator of the Deferred object can call this method.
2. You can call deferred.promise() to return a restricted Promise object, preventing other code from changing the state of the deferred object or reporting its state.
3. When deferred.notify is accessed, any progressCallbacks can be added via deferred.then or deferred.progress. Callbacks are executed in the order in which they were added.
Syntax
deferred.notify( args )
| Parameters | Description |
|---|---|
| args | Object type: Optional argument passed to the progress callbacks |
jQuery Miscellaneous Methods