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

Method resolve

www/js/_hyperscript.esm.js:5062–5068  ·  view source on GitHub ↗
(context, { expr } = {})

Source from the content-addressed store, hash-verified

5060 }
5061 }
5062 resolve(context, { expr } = {}) {
5063 if (this.variant === "template") {
5064 return context.meta.runtime.getRootNode(context.me).getElementById(expr);
5065 } else {
5066 return context.meta.runtime.getRootNode(context.me).getElementById(this.value);
5067 }
5068 }
5069 get lhs() {
5070 return {};
5071 }

Callers 1

setMethod · 0.95

Calls 1

getRootNodeMethod · 0.45

Tested by

no test coverage detected