control-freak-ide/Control-Freak-Documentation/jQuery/docs/entries/deferred.notifyWith.json
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

1 line
1.5 KiB
JSON

{"name":"deferred.notifyWith","type":"method","title":"deferred.notifyWith()","deprecated":null,"removed":null,"desc":" Call the progressCallbacks on a Deferred object with the given context and <code>args</code>. ","categories":["deferred-object","version/1.7"],"entries":[{"return":"Deferred","signatures":{"added":"1.7","argument":[{"desc":"\n Context passed to the progressCallbacks as the <code>this</code> object.\n ","name":"context","type":"Object"},{"desc":"\n Optional arguments that are passed to the progressCallbacks.\n ","name":"args","type":"Object","optional":"true"}]},"examples":null,"longdesc":"\n <p>Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state or reporting status by returning a restricted Promise object through deferred.promise().</p>\n <p>When <code>deferred.notifyWith</code> is called, any progressCallbacks added by <a href=\"/deferred.then/\"><code>deferred.then</code></a> or <a href=\"/deferred.progress/\"><code>deferred.progress</code></a> are called. Callbacks are executed in the order they were added. Each callback is passed the <code>args</code> from the <code>.notifyWith()</code>. Any calls to <code>.notifyWith()</code> after a Deferred is resolved or rejected (or any progressCallbacks added after that) are ignored. For more information, see the documentation for <a href=\"/category/deferred-object/\">Deferred object</a>.</p>\n "}]}