deferred.resolve( [args ] )Returns: Deferred
Description: Resolve a Deferred object and call any doneCallbacks with the given args
.
-
version added: 1.5deferred.resolve( [args ] )
-
argsType: AnythingOptional arguments that are passed to the doneCallbacks.
-
deferred.promise()
.
deferred.then()
or deferred.done()
are called. Callbacks are executed in the order they were added. Each callback is passed the args
from the deferred.resolve()
. 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 deferred.resolve()
call. For more information, see the documentation for jQuery.Deferred().