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

Function parentContext

src/ext/component.js:92–95  ·  view source on GitHub ↗
(componentEl)

Source from the content-addressed store, hash-verified

90 }
91
92 function parentContext(componentEl) {
93 var parent = componentEl.parentElement;
94 return parent ? runtime.makeContext(parent, null, parent, null) : null;
95 }
96
97 /** Create an `attrs` proxy that lazily evaluates attribute strings as hyperscript in the parent scope */
98 function createAttrs(componentEl) {

Callers 1

createAttrsFunction · 0.70

Calls 1

makeContextMethod · 0.45

Tested by

no test coverage detected