aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax/script.js')
-rw-r--r--src/ajax/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js
index 34ddd0466..d3364ee6f 100644
--- a/src/ajax/script.js
+++ b/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;