Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

active-event-stack

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

active-event-stack

Manage groups of event handlers so that only the last group can respond to events

    1.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
682
decreased by-18.32%

Weekly downloads

Readme

Source

Active Event Stack

This maintains one central stack, where each item is a series of event handlers. This stack allows multiple dialogs to overlap, but a keyboard action to only affect the top item.

Usage

var eventStack = require('active-event-stack'); // On mounting or creating an element, add a new listenable (a series of event listeners) this.eventToken = eventStack.addListenable([ ['click', this.clickHandler], ['keydown', this.keydownHandler] ]); // On dismounting or removing an element, remove the listenable by its token eventStack.removeListenable(this.eventToken);

Keywords

FAQs

Last updated on 28 Jun 2015

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc