From 3e17d85a66c50e41b30aceba71392db2fee300f7 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Mon, 6 Oct 2014 02:24:42 +0100 Subject: [PATCH] deferred.progress() accepts multiple arguments --- entries/deferred.progress.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/entries/deferred.progress.xml b/entries/deferred.progress.xml index fd7635a1..3a827a24 100644 --- a/entries/deferred.progress.xml +++ b/entries/deferred.progress.xml @@ -10,10 +10,17 @@ A function, or array of functions, to be called when the Deferred generates progress notifications. + + + + + Optional additional function, or array of functions, to be called when the Deferred generates progress notifications. + + Add handlers to be called when the Deferred object generates progress notifications. -

The argument can be either a single function or an array of functions. When the Deferred generates progress notifications by calling notify or notifyWith, the progressCallbacks are called. Since deferred.progress() returns the Deferred object, other methods of the Deferred object can be chained to this one. When the Deferred is resolved or rejected, progress callbacks will no longer be called, with the exception that any progressCallbacks added after the Deferred enters the resolved or rejected state are executed immediately when they are added, using the arguments that were passed to the .notify() or notifyWith() call. For more information, see the documentation for jQuery.Deferred().

+

The deferred.progress() method accepts one or more arguments, all of which can be either a single function or an array of functions. When the Deferred generates progress notifications by calling notify or notifyWith, the progressCallbacks are called. Since deferred.progress() returns the Deferred object, other methods of the Deferred object can be chained to this one. When the Deferred is resolved or rejected, progress callbacks will no longer be called, with the exception that any progressCallbacks added after the Deferred enters the resolved or rejected state are executed immediately when they are added, using the arguments that were passed to the .notify() or notifyWith() call. For more information, see the documentation for jQuery.Deferred().