Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document jQuery.Deferred.exceptionHook #1246

Open
mgol opened this issue Jul 3, 2024 · 0 comments
Open

Document jQuery.Deferred.exceptionHook #1246

mgol opened this issue Jul 3, 2024 · 0 comments
Milestone

Comments

@mgol
Copy link
Member

mgol commented Jul 3, 2024

See https://jquery.com/upgrade-guide/3.0/#callback-exit, in particular the paragraph:

Note that jQuery logs a message to the console when it is inside a Deferred and a JavaScript exception occurs. These messages take the form jQuery.Deferred exception: (error message). If you do not want any console output on these exceptions, set jQuery.Deferred.exceptionHook to undefined. If you need further help in finding errors reported this way, use the jquery-deferred-reporter plugin during development to obtain stack traces.

Here's the source code of this API: https://github.com/jquery/jquery/blob/cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b/src/deferred/exceptionHook.js

@mgol mgol added this to the 3.7.0 milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant