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

Method resolve

www/js/_hyperscript-max.js:5063–5069  ·  view source on GitHub ↗
(context, { expr } = {})

Source from the content-addressed store, hash-verified

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

Callers 1

setMethod · 0.95

Calls 1

getRootNodeMethod · 0.45

Tested by

no test coverage detected