Commit 2ed81b44 authored by jaubourg's avatar jaubourg

Fixes #8744. Makes sure script transport abort method actually removes the...

Fixes #8744. Makes sure script transport abort method actually removes the script tag even if readyState exists.
parent fcc112f4
...@@ -53,7 +53,7 @@ jQuery.ajaxTransport( "script", function(s) { ...@@ -53,7 +53,7 @@ jQuery.ajaxTransport( "script", function(s) {
// Attach handlers for all browsers // Attach handlers for all browsers
script.onload = script.onreadystatechange = function( _, isAbort ) { 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 // Handle memory leak in IE
script.onload = script.onreadystatechange = null; script.onload = script.onreadystatechange = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment