Undelegate events on a specific element #1025

Closed
eastridge opened this Issue Feb 18, 2012 · 1 comment

2 participants

@eastridge

I ran into an issue where I wanted to undelegate some events set by the events hash only on specific selectors.

Jeremy, would you find it useful if I submitted a pull request that implemented this:

this.undelegateEvents('selector');

?

@jashkenas
Owner

I don't think so -- the point of declarative events instead of imperative events is that they're always available at all times.

If you want imperative, just use regular jQuery.delegate ... or better yet, just ignore the callback instead of removing it from the DOM.

@jashkenas jashkenas closed this Feb 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment