MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / on

Function on

src/handlers/quickTools.js:184–186  ·  view source on GitHub ↗

* Add listener when key changes * @param {QuickToolsEvent} event QuickTools event * @param {QuickToolsEventListener} callback Callback to call when key changes

(event, callback)

Source from the content-addressed store, hash-verified

182 * @param {QuickToolsEventListener} callback Callback to call when key changes
183 */
184 on(event, callback) {
185 events[event].push(callback);
186 },
187 /**
188 * Remove listener
189 * @param {QuickToolsEvent} event QuickTools event

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected