Removing DOM event handlers in long-running browser session
- by Chris Beck
I have a browser interface with a ul#contacts list on the left and div#contact property panel (email, phone) on the right. Click a contact in the list and my app makes an XHR request to get the contact property HTML fragment and update div#contact.innerHTML.
Each contact fragment has an "Edit Contact" link. With JS, I progressively upgrade that…