Function stopPropagation

  • Simply calls stopPropagation on the event. Useful for creating one-liner event handlers.

    Parameters

    • e: {
          stopPropagation: (() => any);
      }

      The event object

      • stopPropagation: (() => any)
          • (): any
          • Returns any

    Returns any

    Example

    import { eventListener, stopPropagation } from 'deleight/eutility';
    window.firstButton.onclick = eventListener([stopPropagation, (e, runContext) => {
    // handle event here.
    }]);