Simply calls stopPropagation on the event. Useful for creating one-liner event handlers.
stopPropagation
The event object
import { eventListener, stopPropagation } from 'deleight/eutility';window.firstButton.onclick = eventListener([stopPropagation, (e, runContext) => { // handle event here.}]); Copy
import { eventListener, stopPropagation } from 'deleight/eutility';window.firstButton.onclick = eventListener([stopPropagation, (e, runContext) => { // handle event here.}]);
Simply calls
stopPropagation
on the event. Useful for creating one-liner event handlers.