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:
bb0b9b8
)
Make sure that the unload event doesn't leak in IE - use jQuery's binding mechanism...
author
jeresig
<jeresig@gmail.com>
Sun, 10 Oct 2010 22:01:59 +0000
(18:01 -0400)
committer
jeresig
<jeresig@gmail.com>
Sun, 10 Oct 2010 22:01:59 +0000
(18:01 -0400)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
82e309d
..
7a10a12
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-1154,7
+1154,7
@@
jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
// More info:
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
if ( window.attachEvent && !window.addEventListener ) {
- window.attachEvent("onunload", function() {
+ jQuery(window).bind("unload", function() {
for ( var id in jQuery.cache ) {
if ( jQuery.cache[ id ].handle ) {
// Try/Catch is to handle iframes being unloaded, see #4280