We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07afc28 commit c580a52Copy full SHA for c580a52
src/ajax/xhr.js
@@ -32,8 +32,9 @@ var xhrId = 0,
32
33
// Support: IE<10
34
// Open requests must be manually aborted on unload (#5280)
35
-if ( window.ActiveXObject ) {
36
- jQuery( window ).on( "unload", function() {
+// See https://support.microsoft.com/kb/2856746 for more info
+if ( window.attachEvent ) {
37
+ window.attachEvent( "onunload", function() {
38
for ( var key in xhrCallbacks ) {
39
xhrCallbacks[ key ]( undefined, true );
40
}
0 commit comments