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

Method handleHref

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

Source from the content-addressed store, hash-verified

14210 return e < 0 ? t : t.slice(0, e);
14211 }
14212 handleHref(t, e, n) {
14213 this._loader
14214 .sanitize(n, { context: "href" })
14215 .then((e) => {
14216 const n = new MouseEvent(t.type, t),
14217 r = ev(null, "a");
14218 for (const t in e) r.setAttribute(t, e[t]);
14219 r.dispatchEvent(n);
14220 })
14221 .catch(() => {});
14222 }
14223 handleTooltip(t, e, n) {
14224 if (e && null != e.tooltip) {
14225 e = (function (t, e, n, r) {

Callers 2

fireMethod · 0.80
constructorMethod · 0.80

Calls 1

evFunction · 0.85

Tested by

no test coverage detected