$.ajax complete function is not fired if success / error functions throw errors
|Reported by:||snover||Owned by:|
Once an ajax request has completed, if an error is thrown from the success or error functions, the complete function does not fire. I am not sure if this is intended behaviour or not, but it would seem to me that there is no real reason not to ensure complete is dispatched too.
Additionally, in Firefox (tested in 3.5.9 with Firebug 1.4.5 and 3.6.3 with Firebug 1.5.4), these uncaught errors are silently discarded, which makes debugging kinda hard. Chrome and Safari display the errors properly.
Change History (7)
comment:4 Changed 6 years ago by rwaldron
- Keywords changed from needsreview ajaxrewrite to needsreview,ajaxrewrite
comment:5 Changed 6 years ago by snover
- Keywords changed from needsreview,ajaxrewrite to needsreview ajaxrewrite