mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #1911
This commit is contained in:
parent
d5cb977a08
commit
ee52c89dc9
@ -450,7 +450,8 @@ function bindReady(){
|
||||
}
|
||||
|
||||
// Prevent memory leaks in IE
|
||||
if ( jQuery.browser.msie )
|
||||
jQuery(window).bind("unload", function() {
|
||||
$("*").add([document, window]).unbind();
|
||||
});
|
||||
// And prevent errors on refresh with events like mouseover
|
||||
// Window isn't included so as not to unbind existing unload events
|
||||
jQuery(window).bind("unload", function() {
|
||||
$("*").add(document).unbind();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user