deferred.resolve( [args ] )Возвращает: Deferred
Описание: С помощью этого метода можно изменить состояние объекта deferred на resolved ("удачно выполненное").
Добавлен в версии: 1.5deferred.resolve( [args ] )
argsType: AnythingOptional arguments that are passed to the doneCallbacks.
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
When the Deferred is resolved, any doneCallbacks added by
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().