Fixed bug #225 again

This commit is contained in:
Jörn Zaefferer 2006-10-03 18:33:02 +00:00
parent 004f3dd517
commit 25ee2d8e2e

View file

@ -155,6 +155,9 @@ jQuery.extend({
// Reset the list of functions
jQuery.readyList = null;
}
// Remove event lisenter to avoid memory leak
if ( jQuery.browser.mozilla || jQuery.browser.opera )
document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
}
}
});
@ -1659,6 +1662,6 @@ if ($.browser.msie) $(window).unload(function() {
var event = jQuery.event, global = event.global;
for (var type in global) {
var els = global[type], i = els.length;
if (i>0) do event.remove(els[i-1], type); while (--i);
if (i>0) do if (type != 'unload') event.remove(els[i-1], type); while (--i);
}
});