I use the following code to access the request in race conditions:
if (currentAjaxRequest !== null) { currentAjaxRequest.abort(); } var query_string = getQuery(); currentAjaxRequest = $.get(query_string, function(data, textStatus, xhr) { if (xhr.status) { currentAjaxRequest = null;
I noticed that in Chrome, when an error occurs when calling abort, it appears in the javascript console:
GET undefined (undefined)
This does not seem to affect the script at all - everything continues to work fine. Do I have to do something to fix this? Or is it just how chrome reports an aborted ajax request?
thanks for the help
source share