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:
4a3c4c8
)
fix for #5198, event memory leak limited to IE only via conditional compilation
author
Brandon Aaron
<brandon.aaron@gmail.com>
Mon, 14 Sep 2009 21:14:15 +0000
(21:14 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Mon, 14 Sep 2009 21:14:15 +0000
(21:14 +0000)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
e911f29
..
9d77314
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-776,11
+776,10
@@
jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
});
// Prevent memory leaks in IE
-// And prevent errors on refresh with events like mouseover in other browsers
// Window isn't included so as not to unbind existing unload events
// More info:
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
-// - https://bugzilla.mozilla.org/show_bug.cgi?id=252542
+/*@cc_on
jQuery( window ).bind( 'unload', function() {
for ( var id in jQuery.cache ) {
// Skip the window
@@
-789,3
+788,4
@@
jQuery( window ).bind( 'unload', function() {
}
}
});
+@*/