🌐 AI搜索 & 代理 主页
Skip to content

Commit dae96f5

Browse files
committed
Added some more information to the unload event cleanup.
1 parent 10303c3 commit dae96f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/event.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@ jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
677677
// Prevent memory leaks in IE
678678
// And prevent errors on refresh with events like mouseover in other browsers
679679
// Window isn't included so as not to unbind existing unload events
680+
// More info:
681+
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
682+
// - https://bugzilla.mozilla.org/show_bug.cgi?id=252542
680683
jQuery( window ).bind( 'unload', function(){
681684
for ( var id in jQuery.cache )
682685
// Skip the window

0 commit comments

Comments
 (0)