-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathdeferred.isRejected.xml
More file actions
15 lines (15 loc) · 1.32 KB
/
deferred.isRejected.xml
File metadata and controls
15 lines (15 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<entry name="deferred.isRejected" type="method" return="Boolean">
<signature>
<added>1.5</added>
<deprecated>1.7</deprecated>
</signature>
<desc> Determine whether a Deferred object has been rejected. </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 rejected state, meaning that either <a href="http://api.jquery.com/deferred.reject/"><code>deferred.reject()</code></a> or <a href="http://api.jquery.com/deferred.rejectWith/"><code>deferred.rejectWith()</code></a> has been called for the object and the failCallbacks 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.isResolved/"><code>deferred.isResolved()</code></a> to determine whether the Deferred object is in the resolved 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 slug="deferred-object"/>
<category slug="deprecated"/>
<category slug="version/1.5"/>
</entry>