From bd068dbc977c59442ed335593b148b3b31e34ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Wed, 6 Jul 2016 11:36:39 +0200 Subject: [PATCH] jQuery.readyException: Add the page, add the 3.1 category Fixes #942 --- categories.xml | 6 ++++++ entries/jQuery.readyException.xml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 entries/jQuery.readyException.xml diff --git a/categories.xml b/categories.xml index a7190a24..55038248 100644 --- a/categories.xml +++ b/categories.xml @@ -422,6 +422,12 @@ var files = event.originalEvent.dataTransfer.files;
]]> + + jQuery.readyException was added.

+
+ ]]>
+
diff --git a/entries/jQuery.readyException.xml b/entries/jQuery.readyException.xml new file mode 100644 index 00000000..2c534ea9 --- /dev/null +++ b/entries/jQuery.readyException.xml @@ -0,0 +1,24 @@ + + + jQuery.readyException() + Handles errors thrown synchronously in functions wrapped in jQuery(). + + 3.1 + + An error thrown in the function wrapped in jQuery(). + + + +

This method is fired when an error is thrown synchronously in a function wrapped in jQuery() or jQuery( document ).ready(), or equivalent. By default it re-throws the error in a timeout so that it's logged in the console and passed to window.onerror instead of being swallowed. Overwrite this method if you want to handle such errors differently.

+
+ + Pass the received error to console.error. + + + + +