Skip to content
Permalink
Browse files

Added some more information to the unload event cleanup.

  • Loading branch information
jeresig committed Mar 19, 2009
1 parent 10303c3 commit dae96f552e7ec4ddef52f86c61de18320a7b63ed
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit dae96f5

Please sign in to comment.
You can’t perform that action at this time.