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

Method on

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

Source from the content-addressed store, hash-verified

14432 i[t].handler.call(this._obj, e, r);
14433 }
14434 on(t, e) {
14435 const n = this.eventName(t),
14436 r = this._handlers;
14437 return (
14438 this._handlerIndex(r[n], t, e) < 0 &&
14439 (Tv(this, t), (r[n] || (r[n] = [])).push({ type: t, handler: e })),
14440 this
14441 );
14442 }
14443 off(t, e) {
14444 const n = this.eventName(t),
14445 r = this._handlers[n],

Callers

nothing calls this directly

Calls 3

TvFunction · 0.85
eventNameMethod · 0.80
_handlerIndexMethod · 0.80

Tested by

no test coverage detected