MCPcopy Create free account
hub / github.com/alignoth/alignoth / on

Method on

resources/vega.min.js:14644–14653  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

14642 return this._svg;
14643 }
14644 on(t, e) {
14645 const n = this.eventName(t),
14646 r = this._handlers;
14647 if (this._handlerIndex(r[n], t, e) < 0) {
14648 const i = { type: t, handler: e, listener: qv(this, e) };
14649 ((r[n] || (r[n] = [])).push(i),
14650 this._svg && this._svg.addEventListener(n, i.listener));
14651 }
14652 return this;
14653 }
14654 off(t, e) {
14655 const n = this.eventName(t),
14656 r = this._handlers[n],

Callers

nothing calls this directly

Calls 3

qvFunction · 0.85
eventNameMethod · 0.80
_handlerIndexMethod · 0.80

Tested by

no test coverage detected