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. + + + + +