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

Method notifyElementSymbol

src/core/runtime/reactivity.js:294–305  ·  view source on GitHub ↗

* Notify that an element-scoped variable was written. * @param {string} name - Variable name * @param {Element} element - Owning element

(name, element)

Source from the content-addressed store, hash-verified

292 * @param {Element} element - Owning element
293 */
294 notifyElementSymbol(name, element) {
295 if (!element) return;
296 var state = this._getObjectState(element);
297 if (state.subscriptions) {
298 var subs = state.subscriptions.get(name);
299 if (subs) {
300 for (var effect of subs) {
301 this._scheduleEffect(effect);
302 }
303 }
304 }
305 }
306
307 /**
308 * Notify that a property was written programmatically.

Callers 1

setSymbolMethod · 0.45

Calls 3

_getObjectStateMethod · 0.95
_scheduleEffectMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected