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

Method _handlerIndex

resources/vega.min.js:14196–14200  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

14194 on() {}
14195 off() {}
14196 _handlerIndex(t, e, n) {
14197 for (let r = t ? t.length : 0; --r >= 0; )
14198 if (t[r].type === e && (!n || t[r].handler === n)) return r;
14199 return -1;
14200 }
14201 handlers(t) {
14202 const e = this._handlers,
14203 n = [];

Callers 4

onMethod · 0.80
offMethod · 0.80
onMethod · 0.80
offMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected