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

Method resolve

www/js/_hyperscript.js:4259–4273  ·  view source on GitHub ↗
(context, { root: rootVal })

Source from the content-addressed store, hash-verified

4257 }
4258 }
4259 resolve(context, { root: rootVal }) {
4260 var value;
4261 if (this.attribute) {
4262 if (this.attribute.type === "computedStyleRef") {
4263 value = context.meta.runtime.resolveComputedStyle(rootVal, this.attribute["name"]);
4264 } else if (this.attribute.type === "styleRef") {
4265 value = context.meta.runtime.resolveStyle(rootVal, this.attribute["name"]);
4266 } else {
4267 value = context.meta.runtime.resolveAttribute(rootVal, this.attribute.name);
4268 }
4269 } else {
4270 value = context.meta.runtime.resolveProperty(rootVal, this.prop.value);
4271 }
4272 return value;
4273 }
4274 get lhs() {
4275 return { root: this.root };
4276 }

Callers

nothing calls this directly

Calls 4

resolveComputedStyleMethod · 0.45
resolveStyleMethod · 0.45
resolveAttributeMethod · 0.45
resolvePropertyMethod · 0.45

Tested by

no test coverage detected