Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Undelegate events on a specific element #1025

Closed
eastridge opened this Issue · 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.