Skip to content

Commit 900c3ce

Browse files
evverxarthurvr
authored andcommitted
deferred.resolve(): Add note about promise
Make consistent with other methods like: * `resolveWith` * `notify`, `notifyWith` * `reject`, `rejectWith` Closes gh-681
1 parent aa3573d commit 900c3ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entries/deferred.resolve.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</signature>
1212
<desc> Resolve a Deferred object and call any doneCallbacks with the given <code>args</code>. </desc>
1313
<longdesc>
14+
<p>Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through <a href="/deferred.promise/"><code>deferred.promise()</code></a>.</p>
1415
<p>When the Deferred is resolved, any doneCallbacks added by <a href="/deferred.then/"><code>deferred.then()</code></a> or <a href="/deferred.done/"><code>deferred.done()</code></a> are called. Callbacks are executed in the order they were added. Each callback is passed the <code>args</code> from the <code>deferred.resolve()</code>. Any doneCallbacks added after the Deferred enters the resolved state are executed immediately when they are added, using the arguments that were passed to the <code>deferred.resolve()</code> call. For more information, see the documentation for <a href="/jQuery.Deferred/">jQuery.Deferred()</a>.</p>
1516
</longdesc>
1617
<category slug="deferred-object"/>

0 commit comments

Comments
 (0)