X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fevent.js;h=7a10a12cb182a47e19269668a1c08ce6bed54dd1;hb=2866f16c09cce43044d721563a7bdbd9170fb494;hp=82e309d981681a75805dbf7a7257db9a4a80173a;hpb=cbf9d874e52212d0289deae747066eccfebde770;p=jquery.git diff --git a/src/event.js b/src/event.js index 82e309d..7a10a12 100644 --- a/src/event.js +++ b/src/event.js @@ -1154,7 +1154,7 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl // More info: // - http://isaacschlueter.com/2006/10/msie-memory-leaks/ if ( window.attachEvent && !window.addEventListener ) { - window.attachEvent("onunload", function() { + 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