MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / detach

Method detach

codebase/sources/dhtmlxscheduler.js:1239–1251  ·  view source on GitHub ↗
(t2)

Source from the content-addressed store, hash-verified

1237 this._socket.send(JSON.stringify({ action: "subscribe", name: t2 }));
1238 }
1239 detach(t2) {
1240 if (!t2) {
1241 if (3 == this._mode)
1242 for (const t3 in this._events)
1243 this._socket.send(JSON.stringify({ action: "unsubscribe", key: t3 }));
1244 return void (this._events = {});
1245 }
1246 const { id: e, name: s } = t2, i = this._events[s];
1247 if (i) {
1248 const t3 = i.filter((t4) => t4.id != e);
1249 t3.length ? this._events[s] = t3 : (delete this._events[s], 3 == this._mode && this._socket.send(JSON.stringify({ action: "unsubscribe", name: s })));
1250 }
1251 }
1252 fire(t2, e) {
1253 const s = this._events[t2];
1254 if (s)

Callers 3

domEventsFunction · 0.45
dhtmlxscheduler.jsFile · 0.45
detachMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected