]> source.dussan.org Git - jquery.git/commitdiff
Fixes #8744. Makes sure script transport abort method actually removes the script...
authorjaubourg <j@ubourg.net>
Mon, 4 Apr 2011 15:41:30 +0000 (17:41 +0200)
committerjaubourg <j@ubourg.net>
Mon, 4 Apr 2011 15:41:30 +0000 (17:41 +0200)
src/ajax/script.js

index 34ddd04661e712c62ddebb9e82940ffc22f79ffc..d3364ee6fa96b41452c8d2d6db63477cb8db3e71 100644 (file)
@@ -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;