active-event-stack
Advanced tools
Weekly downloads
Readme
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.
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);
FAQs
Manage groups of event handlers so that only the last group can respond to events
The npm package active-event-stack receives a total of 664 weekly downloads. As such, active-event-stack popularity was classified as not popular.
We found that active-event-stack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.