MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / #getElementScope

Method #getElementScope

www/js/_hyperscript.esm.js:2415–2432  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

2413 return { value: void 0, element: null };
2414 }
2415 #getElementScope(context) {
2416 var elt = context.meta && context.meta.owner;
2417 if (elt) {
2418 var internalData = this.getInternalData(elt);
2419 var scopeName = "elementScope";
2420 if (context.meta.feature && context.meta.feature.behavior) {
2421 scopeName = context.meta.feature.behavior + "Scope";
2422 }
2423 var elementScope = internalData[scopeName];
2424 if (!elementScope) {
2425 elementScope = {};
2426 internalData[scopeName] = elementScope;
2427 }
2428 return elementScope;
2429 } else {
2430 return {};
2431 }
2432 }
2433 #flatGet(root, property, getter) {
2434 if (root != null) {
2435 var val = getter(root, property);

Callers 2

resolveSymbolMethod · 0.95
setSymbolMethod · 0.95

Calls 1

getInternalDataMethod · 0.95

Tested by

no test coverage detected