Skip to content
Permalink
Browse files

Fixed bug #225 again

  • Loading branch information
jzaefferer committed Oct 3, 2006
1 parent 004f3dd commit 25ee2d8e2efaf4cad8a6d4c247013e573d9d66e9
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/event/event.js
@@ -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);
}
});

0 comments on commit 25ee2d8

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