optimized-events
v1.0.3
Published
Optimized events for browser runtime
Downloads
15
Readme
Optimized Events
Add events handler
import events, { Level } from "optimized-events";
events.add("scroll", "name", () => {
console.log("scroll");
}, Level.LOW);
events.add("copy", "oncopy", () => {
console.log("scroll");
});
Remove events handler
import events from "optimized-events";
events.remove("scroll", "name");
events.remove("copy", "oncopy");