Skip to content

Commit 2a92559

Browse files
robertlevydmethvin
authored andcommitted
Types: Refer to deferred.state instead of deprecated APIs
Closes gh-408 deferred.isResolved and .isRejected were deprecated then removed in favor of .state
1 parent 6ddb384 commit 2a92559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Types.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ <h2 id="Deferred"> Deferred Object</h2>
613613
<p>As of jQuery 1.5, the <a href="/category/deferred-object/">Deferred</a> object provides a way to register multiple callbacks into self-managed callback queues, invoke callback queues as appropriate, and relay the success or failure state of any synchronous or asynchronous function.
614614
</p>
615615
<h2 id="Promise"> Promise Object</h2>
616-
<p>This object provides a subset of the methods of the <a href="/category/deferred-object/">Deferred</a> object (<a href="/deferred.then/"><code>then</code></a>, <a href="/deferred.done/"><code>done</code></a>, <a href="/deferred.fail/"><code>fail</code></a>, <a href="/deferred.always/"><code>always</code></a>, <a href="/deferred.pipe/"><code>pipe</code></a>. <a href="/deferred.isResolved/"><code>isResolved</code></a>, and <a href="/deferred.isRejected/"><code>isRejected</code></a>) to prevent users from changing the state of the Deferred.
616+
<p>This object provides a subset of the methods of the <a href="/category/deferred-object/">Deferred</a> object (<a href="/deferred.then/"><code>then</code></a>, <a href="/deferred.done/"><code>done</code></a>, <a href="/deferred.fail/"><code>fail</code></a>, <a href="/deferred.always/"><code>always</code></a>, <a href="/deferred.pipe/"><code>pipe</code></a>, and <a href="/deferred.state/"><code>state</code></a>) to prevent users from changing the state of the Deferred.
617617
</p>
618618
<h2 id="Callbacks">Callbacks Object</h2>
619619
<p>A multi-purpose object that provides a powerful way to manage callback lists. It supports adding, removing, firing, and disabling callbacks. The Callbacks object is created and returned by the <code>$.Callbacks</code> function and subsequently returned by most of that function's methods. </p>

0 commit comments

Comments
 (0)