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

Method trackGlobalSymbol

www/js/_hyperscript.js:3097–3102  ·  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

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

Callers 1

resolveSymbolMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected