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
{{ message }}
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
will be executed immediately, before ajax even started, since call is imperative to execute function right now. Then call will return undefined. As result, it will allways be errors in console, even when ajax succeed and no error handler will assigned to ajax at al. Right approach is to wrap handler code into anonymous function like
Hi. The error handlers on lines 251, 303, 332
will be executed immediately, before ajax even started, since
call
is imperative to execute function right now. Thencall
will returnundefined
. As result, it will allways be errors in console, even when ajax succeed and no error handler will assigned to ajax at al. Right approach is to wrap handler code into anonymous function likeor to make settings.onError allways return function which does something with arguments.
But both of this methods will not help actually, because most of the library calls are JSONP, which is not ajax. According to jQuery manual
There is not much we can do about error handling in JSONP – fall gracefully after timeout exceeded is the limit. More info in SO question.
The text was updated successfully, but these errors were encountered: