Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make jQuery().off(event) work for delegated events.
Logic to handle detaching by event was in both .off() and jQuery.event.remove; now it's only in .off(). It's a bit of a strange case since the event object (not the jQuery set) specifies the element.
- Loading branch information
Showing
with
25 additions
and 11 deletions.
- +11 −11 src/event.js
- +14 −0 test/unit/event.js