MCPcopy Index your code
hub / github.com/MALSync/MALSync / on

Method on

src/chibiScript/ChibiEventEmitter.ts:6–8  ·  view source on GitHub ↗
(eventName: ChibiEvents, listener: EventListener)

Source from the content-addressed store, hash-verified

4 private target: EventTarget = new EventTarget();
5
6 public on(eventName: ChibiEvents, listener: EventListener) {
7 return this.target.addEventListener(eventName, listener);
8 }
9
10 public once(eventName: ChibiEvents, listener: EventListener) {
11 return this.target.addEventListener(eventName, listener, { once: true });

Callers 15

PreparePageFunction · 0.80
initFunction · 0.80
initFunction · 0.80
startCheckFunction · 0.80
startFunction · 0.80
initFunction · 0.80
addCssVariableFunction · 0.80
initDatabaseFunction · 0.80
registerEventFunction · 0.80
initFrontendModeFunction · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected