From 2ed81b44be958b5f2b5569ab15f22bde262b4eb6 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Mon, 4 Apr 2011 17:41:30 +0200 Subject: [PATCH] Fixes #8744. Makes sure script transport abort method actually removes the script tag even if readyState exists. --- src/ajax/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax/script.js b/src/ajax/script.js index 34ddd046..d3364ee6 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;