fat/bean — Issue #56: Doesn't clone delegated events
Author: benvinegar
Created: 2012-01-31 01:24:19+00:00
State: open

Whenever you clone a delegated event, it becomes a regular event on the delegated element.

This test demonstrates the behaviour:

https://github.com/benvinegar/bean/commit/cd545996d53cbc5bcf3f745f46c6af72203e5166

I spent about an hour trying to come up with a patch for this, but it's kind of nasty. Would appreciate some advice/help.

The offending line is here: https://github.com/fat/bean/blob/master/src/bean.js#L493. You can see that when events are copied, the delegation properties are lost.