mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2024-12-11 08:31:33 +00:00
2 lines
211 B
JavaScript
2 lines
211 B
JavaScript
|
let h=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(s=>s(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(s=>s!==e)}});export{h as c};
|