#4886 closed enhancement (patchwelcome)
Allow selective .die()
Reported by: | ligreman | Owned by: | brandon |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | event | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you bind multiple events to a child element (e.g. "p span") then use the die even to remove one of them it removes all events bound to that, instead of only one.
Example attached.
Attachments (1)
Change History (6)
Changed 14 years ago by
Attachment: | prueba.html added |
---|
comment:1 Changed 12 years ago by
Milestone: | 1.4 |
---|---|
Status: | new → open |
http://jsfiddle.net/dmethvin/b8GqD/
Confirmed.
comment:2 Changed 12 years ago by
Keywords: | needsdocs added; die event removed |
---|---|
Priority: | major → low |
Summary: | Bug in event DIE. → Allow selective .die() |
Type: | bug → enhancement |
I'm recasting this as an enhancement, we need to document that (at least up to 1.4.4), the selector in .die() must exactly match the one in .live().
See the discussion here, with a proposed patch:
comment:3 Changed 12 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | open → closed |
I'm fairly certain we have this documented now, but leaving the needsdocs just in case.
But yeah, I'm OK with the current functionality. If someone comes up with a smaller patch (than the one that was shown in the forum thread) and with a test case, please feel free to re-open!
comment:4 Changed 12 years ago by
Keywords: | needsdocs removed |
---|
Example showing the bug