git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5cb977
)
Fix for #1911
author
Brandon Aaron
<brandon.aaron@gmail.com>
Wed, 14 Nov 2007 15:06:48 +0000
(15:06 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Wed, 14 Nov 2007 15:06:48 +0000
(15:06 +0000)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
627f4d2
..
cb0b6c2
100644
(file)
--- a/
src/event.js
+++ b/
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();
+});