MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / _addCallback

Method _addCallback

frontend/src/tools/sandbox.ts:52–56  ·  view source on GitHub ↗
(event: string, callback: Function)

Source from the content-addressed store, hash-verified

50 }
51
52 private _addCallback(event: string, callback: Function) {
53 const callbacks = this._callbacks.get(event) || [];
54 callbacks.push(callback);
55 this._callbacks.set(event, callbacks);
56 }
57}
58
59export class ProxySandBox {

Callers 2

$onMountedMethod · 0.95
$onUnmountedMethod · 0.95

Calls 3

getMethod · 0.45
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected