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