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

Method trackGlobalSymbol

www/js/_hyperscript-max.js:3096–3101  ·  view source on GitHub ↗

* Track a global variable read as a dependency. * @param {string} name - Variable name

(name)

Source from the content-addressed store, hash-verified

3094 * @param {string} name - Variable name
3095 */
3096 trackGlobalSymbol(name) {
3097 this._currentEffect.dependencies.set(
3098 "symbol:global:" + name,
3099 { type: "symbol", name, scope: "global" }
3100 );
3101 }
3102 /**
3103 * Track an element-scoped variable read as a dependency.
3104 * @param {string} name - Variable name

Callers 1

resolveSymbolMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected