Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery deferred.isResolved() method

jQuery deferred.isResolved() method

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods


Definition and Usage

The deferred.isResolved() function is used to determine whether a Deferred object has been resolved.
**Note:** 1. Deprecated since jQuery 1.7; use deferred.state() instead. Returns true if the Deferred object is in the resolved state. This means deferred.resolve() or deferred.resolveWith() has been called on the object, and doneCallbacks have been called (or are in the process of being called).
2. A Deferred object can be in one of three states: pending, resolved, or rejected; use deferred.isRejected() to determine whether the deferred object is in the rejected state.


Syntax

Tip:

This method accepts no arguments.

deferred.isResolved()


jQuery Miscellaneous MethodsjQuery Miscellaneous Methods