diff options
author | jaubourg <j@ubourg.net> | 2011-04-04 17:41:30 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-04-04 17:41:30 +0200 |
commit | 2ed81b44be958b5f2b5569ab15f22bde262b4eb6 (patch) | |
tree | 7ed671f975904e14f819a851edee71c8a7b36863 /src/ajax | |
parent | fcc112f4062cd58113b28bd6eca4ab2eb80ac11d (diff) | |
download | jquery-2ed81b44be958b5f2b5569ab15f22bde262b4eb6.tar.gz jquery-2ed81b44be958b5f2b5569ab15f22bde262b4eb6.zip |
Fixes #8744. Makes sure script transport abort method actually removes the script tag even if readyState exists.
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js index 34ddd0466..d3364ee6f 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -53,7 +53,7 @@ jQuery.ajaxTransport( "script", function(s) { // Attach handlers for all browsers script.onload = script.onreadystatechange = function( _, isAbort ) { - if ( !script.readyState || /loaded|complete/.test( script.readyState ) ) { + if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) { // Handle memory leak in IE script.onload = script.onreadystatechange = null; |