No need to use the conditional comment for binding the onunload event in IE.
This commit is contained in:
parent
0d06f3997b
commit
42f8c3add3
1 changed files with 11 additions and 11 deletions
|
@ -882,8 +882,8 @@ jQuery.each( ("blur focus load resize scroll unload click dblclick " +
|
||||||
// Window isn't included so as not to unbind existing unload events
|
// Window isn't included so as not to unbind existing unload events
|
||||||
// More info:
|
// More info:
|
||||||
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
|
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
|
||||||
/*@cc_on
|
if ( window.attachEvent ) {
|
||||||
window.attachEvent("onunload", function() {
|
window.attachEvent("onunload", function() {
|
||||||
for ( var id in jQuery.cache ) {
|
for ( var id in jQuery.cache ) {
|
||||||
if ( jQuery.cache[ id ].handle ) {
|
if ( jQuery.cache[ id ].handle ) {
|
||||||
// Try/Catch is to handle iframes being unloaded, see #4280
|
// Try/Catch is to handle iframes being unloaded, see #4280
|
||||||
|
@ -892,5 +892,5 @@ window.attachEvent("onunload", function() {
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@*/
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue