MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / notifyElementSymbol

Method notifyElementSymbol

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

3105 * @param {Element} element - Owning element
3106 */
3107 notifyElementSymbol(name, element) {
3108 if (!element) return;
3109 var state = this._getObjectState(element);
3110 if (state.subscriptions) {
3111 var subs = state.subscriptions.get(name);
3112 if (subs) {
3113 for (var effect of subs) {
3114 this._scheduleEffect(effect);
3115 }
3116 }
3117 }
3118 }
3119 /**
3120 * Notify that a property was written programmatically.
3121 * Schedules all effects watching properties on this object.

Callers 1

setSymbolMethod · 0.45

Calls 3

_getObjectStateMethod · 0.45
getMethod · 0.45
_scheduleEffectMethod · 0.45

Tested by

no test coverage detected