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

Method notifyProperty

tools/common/_hyperscript.iife.js:3124–3130  ·  view source on GitHub ↗

* Notify that a property was written programmatically. * Schedules all effects watching properties on this object. * @param {Object} obj - DOM element or plain JS object

(obj)

Source from the content-addressed store, hash-verified

3122 * @param {Object} obj - DOM element or plain JS object
3123 */
3124 notifyProperty(obj) {
3125 if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return;
3126 var state = this._objectState.get(obj);
3127 if (state && state.propertyHandler) {
3128 state.propertyHandler.queueAll();
3129 }
3130 }
3131 /**
3132 * Add an effect to the pending set.
3133 * Schedules a microtask to run them if one isn't already scheduled.

Callers 2

setPropertyMethod · 0.45
notifyMutationMethod · 0.45

Calls 2

getMethod · 0.45
queueAllMethod · 0.45

Tested by

no test coverage detected