Commit ac1581b2 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko Committed by Michał Gołębiowski

Ajax: remove event dependency from the ajax module

(cherry-picked from 4e7f34f6296111f7f91d621397dfb02c6bf4c41f)

Closes gh-1695
parent 9448be71
...@@ -23,8 +23,9 @@ var xhrId = 0, ...@@ -23,8 +23,9 @@ var xhrId = 0,
// Support: IE9 // Support: IE9
// Open requests must be manually aborted on unload (#5280) // Open requests must be manually aborted on unload (#5280)
if ( window.ActiveXObject ) { // See https://support.microsoft.com/kb/2856746 for more info
jQuery( window ).on( "unload", function() { if ( window.attachEvent ) {
window.attachEvent( "onunload", function() {
for ( var key in xhrCallbacks ) { for ( var key in xhrCallbacks ) {
xhrCallbacks[ key ](); xhrCallbacks[ key ]();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment