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

Method on

codebase/dhtmlxscheduler.es.js:658–663  ·  view source on GitHub ↗
(i, t)

Source from the content-addressed store, hash-verified

656 }
657 }
658 on(i, t) {
659 const n = this._uid();
660 let s = this._events[i];
661 const a = !!s;
662 return a || (s = this._events[i] = []), s.push({ id: n, handler: t }), a || this._mode != 3 || this._socket.send(JSON.stringify({ action: "subscribe", name: i })), { name: i, id: n };
663 }
664 _resubscribe() {
665 if (this._mode == 3)
666 for (const i in this._events)

Callers 3

onMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45

Calls 1

_uidMethod · 0.95

Tested by

no test coverage detected