No need to use the conditional comment for binding the onunload event in IE.
This commit is contained in:
parent
0d06f3997b
commit
42f8c3add3
|
@ -882,7 +882,7 @@ jQuery.each( ("blur focus load resize scroll unload click dblclick " +
|
|||
// Window isn't included so as not to unbind existing unload events
|
||||
// More info:
|
||||
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
|
||||
/*@cc_on
|
||||
if ( window.attachEvent ) {
|
||||
window.attachEvent("onunload", function() {
|
||||
for ( var id in jQuery.cache ) {
|
||||
if ( jQuery.cache[ id ].handle ) {
|
||||
|
@ -893,4 +893,4 @@ window.attachEvent("onunload", function() {
|
|||
}
|
||||
}
|
||||
});
|
||||
@*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue