Easy Tutorial
❮ Event Mouseover Prop Jquery Fx Off ❯

jQuery deferred.resolveWith() Method

jQuery Miscellaneous Methods


Definition and Usage

The deferred.resolveWith() function is used to resolve a Deferred object and invoke any doneCallbacks callback functions with the given context and args parameters.

Note: 1. Typically, only the creator of the Deferred object can call this method. You can prevent other code from changing the state of the Deferred object or reporting its status by returning a restricted Promise object with deferred.promise().


Syntax

Parameter Description
context Object type, passed as the this object to the doneCallbacks callback functions
args Array type, passes an optional array of arguments to the doneCallbacks callback functions

jQuery Miscellaneous Methods

❮ Event Mouseover Prop Jquery Fx Off ❯