Side navigation
#13799 closed bug (notabug)
Opened April 20, 2013 09:01AM UTC
Closed April 20, 2013 10:55AM UTC
.off() doesn't remove event listener
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
#!js $input.off('kreypress', press).on('keypress', press); $input.off('kreypress', press).on('keypress', press);
Executing this code will trigger press()
method twice. Demo.
Attachments (0)
Change History (1)
Changed April 20, 2013 10:55AM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
You made a typo in the test...
http://jsfiddle.net/m_gol/cpmVQ/1/