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

Method href

resources/vega.min.js:15337–15349  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

15335 );
15336 }
15337 href(t) {
15338 const e = t.href;
15339 let n;
15340 if (e) {
15341 if ((n = this._hrefs && this._hrefs[e])) return n;
15342 this.sanitizeURL(e).then((t) => {
15343 ((t["xlink:href"] = t.href),
15344 (t.href = null),
15345 ((this._hrefs || (this._hrefs = {}))[e] = t));
15346 });
15347 }
15348 return null;
15349 }
15350 attr(t, e, n, r) {
15351 const i = {},
15352 o = (t, e, n, r) => {

Callers 1

oMethod · 0.95

Calls 1

sanitizeURLMethod · 0.45

Tested by

no test coverage detected