can-event-queue provides a mixin that adds event binding and dispatching methods using can-queues, including legacy addEventListener and removeEventListener. It is part of the CanJS ecosystem, currently at version 1.1.8 with stable maintenance. This package is not intended for new projects; it is maintained for backward compatibility with older CanJS applications that depend on queue-based event dispatching. Key differentiator: it uses can-queues for asynchronous event handling, which is more complex than standard EventTarget.
npm install can-event-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to mix in event queue behavior into a custom class, then add an event listener and dispatch an event.
Use standard EventTarget or a modern event library instead.
Ensure that event handlers are not expected to run before the next line of code.
Install can-queues: npm install can-queues
Use default import or check exports.
Use Object.assign(MyClass.prototype, CanEventQueue.prototype); after defining the class.
Run npm install can-queues