Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 287 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 287 Bytes

swallowify

Stop propagation of the current event.

Install

$ npm install --save swallowify

Usage

const swallowify = require('swallowify');

const eventfulFunction = () => {
  /// Much STUFF
}

const swallowPropagationClick = swallowify(eventfulFunction);