This is a library-specific solution to a specific case of JavaScript memory management. Perhaps it should be titled, "Cleaning up event listeners with JQuery."<p>You should mention what happens if you <i>don't</i> remove the event listeners.<p>In the Closure Library, you can do something similar with a EventHandler, <a href="http://docs.closure-library.googlecode.com/git/class_goog_events_EventHandler.html" rel="nofollow">http://docs.closure-library.googlecode.com/git/class_goog_ev...</a>