seanmonstar/Shipyard — Issue #25: Event delegation doesn't allow the same handler for different selectors
Author: seanmonstar
Created: 2012-02-28 20:06:47+00:00
State: open
Labels: bug

The event's system prevents you from accidentally assigned the same function to an event multiple times. That should probably throw an Error, or at the least `log.warning` about it.

However, this causes issues when using delegation. This fails:

```js
myEl.delegate('.container a', 'click', myFn);
myEl.delegate('.other-contaienr a', 'click', myFn);
```

While we could say you should combine the selector, at the least, this is unintuitive.