madrobby/zepto — pull request #919 by hoisie (2014-02-08 01:17:26+00:00)
Title: Store event handlers on the node object

This commit stores event handlers on the `_zhandlers` properly on the
Node object instead of an object in Zepto's event library.

This has three main benefits:

1. Overally it's better for garbage collection. If a node with bound
event listeners is being garbage collected, and the event-related
data is stored on the node object, all that data is going to be garbage
collected (e.g the closure and other metadata).

2. It makes it possible to use automated tools to detect memory leaks
because they can check the `_zhandlers` properly on DOM nodes directly.

3. It makes it easier to debug DOM/listener leaks because it's clearer
where the event listeners are stored.