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

Ajax: remove event dependency from the ajax module

(cherry-picked from c580a529)

Ref 4e7f34f6296111f7f91d621397dfb02c6bf4c41f
parent 76294e1e
...@@ -32,8 +32,9 @@ var xhrId = 0, ...@@ -32,8 +32,9 @@ var xhrId = 0,
// Support: IE<10 // Support: IE<10
// 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 ]( undefined, true ); xhrCallbacks[ key ]( undefined, true );
} }
......
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