mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 21:15:01 -05:00
Ajax: Fix for request aborted in ajaxSend
Fixes gh-1775 Close gh-1619
This commit is contained in:
@@ -627,6 +627,12 @@ jQuery.extend({
|
||||
if ( fireGlobals ) {
|
||||
globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
|
||||
}
|
||||
|
||||
// If request was aborted inside ajaxSend, stop there
|
||||
if ( state === 2 ) {
|
||||
return jqXHR;
|
||||
}
|
||||
|
||||
// Timeout
|
||||
if ( s.async && s.timeout > 0 ) {
|
||||
timeoutTimer = setTimeout(function() {
|
||||
|
||||
Reference in New Issue
Block a user