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

Function off

src/lib/editorManager.js:1755–1761  ·  view source on GitHub ↗
(types, callback)

Source from the content-addressed store, hash-verified

1753 });
1754 },
1755 off(types, callback) {
1756 if (!Array.isArray(types)) types = [types];
1757 types.forEach((type) => {
1758 if (!events[type]) return;
1759 events[type] = events[type].filter((c) => c !== callback);
1760 });
1761 },
1762 emit(event, ...args) {
1763 let detailedEvent;
1764 let detailedEventArgs = args.slice(1);

Callers 1

editorFile.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected