From b0b24795b24ee6809397fbbadf42f31f310a219f Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Wed, 8 Jul 2015 07:35:02 -0300 Subject: Imported Upstream version 7.6.0 --- bower_components/jquery/src/ajax/xhr.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bower_components/jquery/src/ajax') diff --git a/bower_components/jquery/src/ajax/xhr.js b/bower_components/jquery/src/ajax/xhr.js index 0f560f4..f458ceb 100644 --- a/bower_components/jquery/src/ajax/xhr.js +++ b/bower_components/jquery/src/ajax/xhr.js @@ -32,8 +32,9 @@ var xhrId = 0, // Support: IE<10 // 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 ]( undefined, true ); } -- cgit v1.2.3