-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathdeferred.isResolved.xml
More file actions
16 lines (15 loc) · 1.38 KB
/
deferred.isResolved.xml
File metadata and controls
16 lines (15 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<entry name="deferred.isResolved" type="method" return="Boolean">
<signature>
<added>1.5</added>
<deprecated>1.7</deprecated>
</signature>
<desc> Determine whether a Deferred object has been resolved. </desc>
<longdesc>
<p>As of jQuery 1.7 this API has been deprecated; please use <a href="http://api.jquery.com/deferred.state"><code>deferred.state()</code></a> instead.</p>
<p>Returns <code>true</code> if the Deferred object is in the resolved state, meaning that either <a href="http://api.jquery.com/deferred.resolve/"><code>deferred.resolve()</code></a> or <a href="http://api.jquery.com/deferred.resolveWith/"><code>deferred.resolveWith()</code></a> has been called for the object and the doneCallbacks have been called (or are in the process of being called).</p>
<p>Note that a Deferred object can be in one of three states: pending, resolved, or rejected; use <a href="http://api.jquery.com/deferred.isRejected/"><code>deferred.isRejected()</code></a> to determine whether the Deferred object is in the rejected state. These methods are primarily useful for debugging, for example to determine whether a Deferred has already been resolved even though you are inside code that intended to reject it.</p>
</longdesc>
<category name="Deferred Object" slug="deferred-object"/>
<category name="Deprecated" slug="deprecated"/>
<category name="Version 1.5" slug="1.5"/>
</entry>