GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — EventTarget removeEventListener does not match all listeners · Issue #65244 · nodejs/node Closed Labels eventsIssues and PRs related to EventEmitter and the events module. DescriptionVersionv26.7.0 PlatformSubsystemevents What steps will reproduce the bug?let invocations = 0 const listener = () => { invocations++ } const target = new EventTarget() // add the listener target.addEventListener('test', listener, true) // remove the listener target.removeEventListener('test', listener, true) // dispatch an event target.dispatchEvent(new Event('test')) // invocations should be 0 console.info('invocations', invocations) How often does it reproduce? Is there a required condition?Every time. What is the expected behavior? Why is that the expected behavior?All matching event listeners should be removed, What do you see instead?The event listener is not removed, Additional informationRunning the code under Node.js and popular browsers results in differing output. Chrome, Firefox and Safari all print This can cause memory leaks, unexpected application behaviour, etc. Activity
MetadataMetadataAssigneesLabelseventsIssues and PRs related to EventEmitter and the events module. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |