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

Method off

src/lib/settings.js:368–371  ·  view source on GitHub ↗

* Removes the given callback from the given event * @param {'update' | 'reset'} event * @param {function():void} callback

(event, callback)

Source from the content-addressed store, hash-verified

366 * @param {function():void} callback
367 */
368 off(event, callback) {
369 if (!this.#on[event]) this.#on[event] = [];
370 this.#on[event].splice(this.#on[event].indexOf(callback), 1);
371 }
372
373 /**
374 * Gets a setting with the given key

Callers 13

replaceElMethod · 0.80
restoreElMethod · 0.80
onhideMethod · 0.80
onshowMethod · 0.80
removeFunction · 0.80
findFileFunction · 0.80
disposeFunction · 0.80
onshowFunction · 0.80
editorFile.jsFile · 0.80
formatMethod · 0.80
onKeyboardHideFunction · 0.80
onFileRemovedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected