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

Function on

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

Source from the content-addressed store, hash-verified

1746 return TIMEOUT_VALUE;
1747 },
1748 on(types, callback) {
1749 if (!Array.isArray(types)) types = [types];
1750 types.forEach((type) => {
1751 if (!events[type]) events[type] = [];
1752 events[type].push(callback);
1753 });
1754 },
1755 off(types, callback) {
1756 if (!Array.isArray(types)) types = [types];
1757 types.forEach((type) => {

Callers 1

editorFile.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected