X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;fp=src%2Fevent.js;h=b66cfab6deacfe60327eb197591fe099326331db;hb=37d297c67fe3569a5a9d81586e14d4a887df7879;hp=22c9585768b56bd70799db6d4559e1cabadee837;hpb=a939ade9c6d2b42be24031d902c86ec52847c0cc;p=jquery.git diff --git a/src/event.js b/src/event.js index 22c9585..b66cfab 100644 --- a/src/event.js +++ b/src/event.js @@ -1177,21 +1177,4 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl } }); -// Prevent memory leaks in IE -// Window isn't included so as not to unbind existing unload events -// More info: -// - http://isaacschlueter.com/2006/10/msie-memory-leaks/ -if ( window.attachEvent && !window.addEventListener ) { - 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 - try { - jQuery.event.remove( jQuery.cache[ id ].handle.elem ); - } catch(e) {} - } - } - }); -} - })( jQuery );