MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #getElementScope

Method #getElementScope

src/core/runtime/runtime.js:397–414  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

395 }
396
397 #getElementScope(context) {
398 var elt = context.meta && context.meta.owner;
399 if (elt) {
400 var internalData = this.getInternalData(elt);
401 var scopeName = "elementScope";
402 if (context.meta.feature && context.meta.feature.behavior) {
403 scopeName = context.meta.feature.behavior + "Scope";
404 }
405 var elementScope = internalData[scopeName];
406 if (!elementScope) {
407 elementScope = {};
408 internalData[scopeName] = elementScope;
409 }
410 return elementScope;
411 } else {
412 return {};
413 }
414 }
415
416 #flatGet(root, property, getter) {
417 if (root != null) {

Callers 2

resolveSymbolMethod · 0.95
setSymbolMethod · 0.95

Calls 1

getInternalDataMethod · 0.95

Tested by

no test coverage detected