Skip to content
Permalink
Browse files

Fixes #8744. Makes sure script transport abort method actually remove…

…s the script tag even if readyState exists.
  • Loading branch information
jaubourg committed Apr 4, 2011
1 parent fcc112f commit 2ed81b44be958b5f2b5569ab15f22bde262b4eb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 2ed81b4

Please sign in to comment.
You can’t perform that action at this time.