I recently developed an html5 mobile application. The application was a single page where navigation hash change events replaced the entire DOM. One section of the applicati
I guess you're talking about addEventListener. When you remove the DOM elements, some browsers leak these events and doesn't remove them. This is why jQuery does several things when removing an element:
removeEventListener. That means it's keeping an array with the event listeners it added on this element.onclick, onblur, etc) using delete on the DOM element when addEventListener is not available (still, it has an array where it stores the events added).null to avoid IE 6/7/8 memory leaks.