Permalink
Browse files

Ajax: remove event dependency from the ajax module

  • Loading branch information...
markelog committed Oct 10, 2014
1 parent 07afc28 commit c580a529716cd89eccdbda1bf3e9636e5a38811e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ajax/xhr.js
View
@@ -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 );
}

0 comments on commit c580a52

Please sign in to comment.