From 33e704a48610153319b3f9565a7f941228d30505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Wed, 19 Oct 2016 14:32:30 +0200 Subject: [PATCH] deferred.catch: create the page Fixes #951 --- entries/deferred.catch.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 entries/deferred.catch.xml diff --git a/entries/deferred.catch.xml b/entries/deferred.catch.xml new file mode 100644 index 00000000..17df8dda --- /dev/null +++ b/entries/deferred.catch.xml @@ -0,0 +1,31 @@ + + + deferred.catch() + + 3.0 + + + A function that is called when the Deferred is rejected. + + + + Add handlers to be called when the Deferred object is rejected. + + +

deferred.catch( fn ) is an alias to deferred.then( null, fn ). Read its page for more information.

+
+ + Since the jQuery.get method returns a jqXHR object, which is derived from a Deferred object, we can rejection handlers using the .catch method. + + + + +