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

Method resolve

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

Source from the content-addressed store, hash-verified

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

Callers 1

setMethod · 0.95

Calls 1

getRootNodeMethod · 0.45

Tested by

no test coverage detected