mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user