Closed
Bug 901335
Opened 11 years ago
Closed 11 years ago
Firefox can't remove event, which added with addEventListener(... listener.bind(context))
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: yuri, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko) Version/7.0 Safari/537.51.3 Steps to reproduce: document.addEventListener("MyEvent", listener.bind(this)); function listener (e) { document.removeEventListener("MyEvent", listener); alert("fired"); } var event = document.createEvent("CustomEvent"); event.initCustomEvent("MyEvent", true, true, {}); document.dispatchEvent(event); document.dispatchEvent(event); Actual results: //Event fired 2 times, event with bonded this can't removed Expected results: //Event must be fired 1 time
Reporter | ||
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Updated•11 years ago
|
Resolution: INVALID → FIXED
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Reporter | ||
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → INVALID
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Reporter | ||
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•