Skip to content

Commit

Permalink
Fix for #1911
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed Nov 14, 2007
1 parent d5cb977 commit ee52c89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/event.js
Expand Up @@ -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();
});

0 comments on commit ee52c89

Please sign in to comment.