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

Method trackGlobalSymbol

tools/common/_hyperscript.iife.js:3045–3050  ·  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

3043 * @param {string} name - Variable name
3044 */
3045 trackGlobalSymbol(name) {
3046 this._currentEffect.dependencies.set(
3047 "symbol:global:" + name,
3048 { type: "symbol", name, scope: "global" }
3049 );
3050 }
3051 /**
3052 * Track an element-scoped variable read as a dependency.
3053 * @param {string} name - Variable name

Callers 1

resolveSymbolMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected