aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-03-19 15:16:02 +0000
committerJohn Resig <jeresig@gmail.com>2009-03-19 15:16:02 +0000
commitdae96f552e7ec4ddef52f86c61de18320a7b63ed (patch)
tree2c5a3ebc7527dd67f6ec57520dd81e595e70cdc2
parent10303c37a152fe524f28d9ec7de140e82c60eb11 (diff)
downloadjquery-dae96f552e7ec4ddef52f86c61de18320a7b63ed.tar.gz
jquery-dae96f552e7ec4ddef52f86c61de18320a7b63ed.zip
Added some more information to the unload event cleanup.
-rw-r--r--src/event.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 26c56209f..95718ad06 100644
--- a/src/event.js
+++ b/src/event.js
@@ -677,6 +677,9 @@ 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
jQuery( window ).bind( 'unload', function(){
for ( var id in jQuery.cache )
// Skip the window