You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jQuery.error: Don't advertise assigning jQuery.error to console.error
The original implementation of `jQuery.error` throws an error. When overwritten,
it should still finish by throwing an error to avoid observable differences in
behavior.
Closesgh-1233
Copy file name to clipboardExpand all lines: entries/jQuery.error.xml
+6-2
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@
10
10
<desc>Takes a string and throws an exception containing it.</desc>
11
11
<longdesc>
12
12
<p>This method exists primarily for plugin developers who wish to override it and provide a better display (or more information) for the error messages.</p>
13
+
<p>If you do override the method, remember to still throw an error at the end to preserve semantics.</p>
13
14
</longdesc>
14
15
<example>
15
-
<desc>Override jQuery.error for display in Firebug.</desc>
16
+
<desc>Override <code>jQuery.error</code> to send it to a logging service, assuming the <code>sendErrorLog</code> method is provided by this service.</desc>
0 commit comments