You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented stopImmediatePropagation with a really simple change. In the emit prototype loop that executes the listeners I check the ReflectApply return for the string 'stopImmediatePropagation'. To stop a event propagation the event handler then returns 'stopImmediatePropagation'.
Will this break something? Is there interest in adding this?
stopImmediatePropagation is part of the EventTarget API which is not supported by this module at the moment. Custom extensions outside of the Node.js API are out of scope. If we add this it should be part of the EventTarget API.
Activity
boblund commentedon Nov 4, 2024
Here's the code change
goto-bus-stop commentedon Nov 12, 2024
stopImmediatePropagation is part of the EventTarget API which is not supported by this module at the moment. Custom extensions outside of the Node.js API are out of scope. If we add this it should be part of the EventTarget API.