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

Function registerEvent

src/_provider/singleAbstract.ts:469–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

467 protected globalUpdateEvent;
468
469 protected registerEvent() {
470 if (!this.globalUpdateEvent) {
471 this.globalUpdateEvent = emitter.on(`update.${this.getCacheKey()}`, data =>
472 this.updateEvent(data),
473 );
474 }
475 }
476
477 protected updateEvent(data) {
478 if (this.isDirty()) {

Callers

nothing calls this directly

Calls 2

onMethod · 0.80
getCacheKeyMethod · 0.45

Tested by

no test coverage detected