MCPcopy Create free account
hub / github.com/Make-md/makemd / on

Method on

src/shared/utils/inputManager.ts:9–15  ·  view source on GitHub ↗
(eventName: string, listener: Function)

Source from the content-addressed store, hash-verified

7 }
8
9 on(eventName: string, listener: Function) {
10 if (!this.events[eventName]) {
11 this.events[eventName] = [];
12 }
13
14 this.events[eventName].push(listener);
15 }
16
17 off(eventName: string, listener: Function) {
18 const listeners = this.events[eventName];

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected