stopimmediatepropagation

0.2.1 • Public • Published

Polyfill for missing Event#stopImmediatePropagation

The stopImmediatePropagation method can be called on the event object inside a listener to stop other listeners, of the same event type and registered on the same node, being called. Normally, stopPropagation only stops the event bubbling to parent elements.

The Android 2 browser has missing support for this wonderful method, so I've extracted this shim from FastClick and provided a standalone implementation in case anyone needs it.

License

Copyright © 2012 Matthew Caruana Galizia, licensed under an MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    101
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    101
  • 0.2.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i stopimmediatepropagation

Weekly Downloads

83

Version

0.2.1

License

none

Last publish

Collaborators

  • mcg