Содержание:
deferred.notifyWith( context [, args ] )Возвращает: Deferred
Описание: Вызывает событие частичного выполнения deferred (его прогресса выполнения), с указанием и контекста выполения (значение переменной this) обработчика.
-
Добавлен в версии: 1.7deferred.notifyWith( context [, args ] )
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().
When deferred.notifyWith
is called, any progressCallbacks added by deferred.then
or deferred.progress
are called. Callbacks are executed in the order they were added. Each callback is passed the args
from the .notifyWith()
. Any calls to .notifyWith()
after a Deferred is resolved or rejected (or any progressCallbacks added after that) are ignored. For more information, see the documentation for Deferred object.