mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Ajax: remove event dependency from the ajax module
Closes gh-1695
This commit is contained in:
parent
edfc94df92
commit
4e7f34f629
@ -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 ]();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user