From: jaubourg Date: Mon, 4 Apr 2011 15:41:30 +0000 (+0200) Subject: Fixes #8744. Makes sure script transport abort method actually removes the script... X-Git-Tag: 1.6b1~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ed81b44be958b5f2b5569ab15f22bde262b4eb6;p=jquery.git Fixes #8744. Makes sure script transport abort method actually removes the script tag even if readyState exists. --- 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;