Listeners
In a previous article, JavaScript Built-in Listeners and Memory Leaks, I described one method of wrapping built-in JavaScript DOM events into a custom event handler so listeners can be properly cleaned up to prevent memory leaks. In this article I'll describe a use of removeBuiltinListener to save you a step if you're adding and removing a lot of DOM elements which have listeners attached.
Awhile back on Digg there were a couple posts about animated sliding boxes similar to what Digg uses for its comment system.
Built-in Event Listeners, JavaScript Objects, the DOM, and Memory Leaks
As I mentioned yesterday in my article about custom event listeners, I decided to tie built-in listeners into my Event object. I did this for two reasons. The secondary reason was simply because it was easier to deal with multiple methods with similar construct within the same object.