Skip to content
Permalink
Browse files

Fix for #1911

  • Loading branch information
brandonaaron committed Nov 14, 2007
1 parent d5cb977 commit ee52c89dc956dc04d827d70440a089fd0cf94a46
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/event.js
@@ -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.
You can’t perform that action at this time.