Permalink
Browse files

Ajax: remove event dependency from the ajax module

Closes gh-1695
  • Loading branch information...
markelog committed Oct 10, 2014
1 parent edfc94d commit 4e7f34f6296111f7f91d621397dfb02c6bf4c41f
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ajax/xhr.js
View
@@ -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 ]();
}

0 comments on commit 4e7f34f

Please sign in to comment.