Fixes #8744. Makes sure script transport abort method actually removes the script tag even if readyState exists.
This commit is contained in:
parent
fcc112f406
commit
2ed81b44be
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue