MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / off

Function off

packages/utilities/src/event.js:16–24  ·  view source on GitHub ↗
(name, callback)

Source from the content-addressed store, hash-verified

14 window.LINEN_EVENT_HANDLERS[name].push(callback);
15 },
16 off(name, callback) {
17 this.setup();
18 if (!window.LINEN_EVENT_HANDLERS[name]) {
19 return;
20 }
21 window.LINEN_EVENT_HANDLERS[name] = window.LINEN_EVENT_HANDLERS[
22 name
23 ].filter((handler) => handler !== callback);
24 },
25 setup() {
26 window.LINEN_EVENT_HANDLERS = window.LINEN_EVENT_HANDLERS || {};
27 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected