MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / resolve

Method resolve

tools/common/_hyperscript.iife.js:4721–4727  ·  view source on GitHub ↗
(context, { expr } = {})

Source from the content-addressed store, hash-verified

4719 }
4720 }
4721 resolve(context, { expr } = {}) {
4722 if (this.variant === "template") {
4723 return context.meta.runtime.getRootNode(context.me).getElementById(expr);
4724 } else {
4725 return context.meta.runtime.getRootNode(context.me).getElementById(this.value);
4726 }
4727 }
4728 get lhs() {
4729 return {};
4730 }

Callers 1

setMethod · 0.95

Calls 1

getRootNodeMethod · 0.45

Tested by

no test coverage detected