summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src/ajax/xhr.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src/ajax/xhr.js')
-rw-r--r--js/vendor/jquery/src/ajax/xhr.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/vendor/jquery/src/ajax/xhr.js b/js/vendor/jquery/src/ajax/xhr.js
index bdeeee3f8..c2b43c921 100644
--- a/js/vendor/jquery/src/ajax/xhr.js
+++ b/js/vendor/jquery/src/ajax/xhr.js
@@ -23,8 +23,9 @@ var xhrId = 0,
// Support: IE9
// Open requests must be manually aborted on unload (#5280)
-if ( window.ActiveXObject ) {
- jQuery( window ).on( "unload", function() {
+// See https://support.microsoft.com/kb/2856746 for more info
+if ( window.attachEvent ) {
+ window.attachEvent( "onunload", function() {
for ( var key in xhrCallbacks ) {
xhrCallbacks[ key ]();
}