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

Method setProperty

tools/common/_hyperscript.iife.js:2452–2455  ·  view source on GitHub ↗

* Set a property on an object and notify the reactivity system. * @param {Object} obj - DOM element or plain JS object * @param {string} property * @param {any} value

(obj, property, value)

Source from the content-addressed store, hash-verified

2450 * @param {any} value
2451 */
2452 setProperty(obj, property, value) {
2453 obj[property] = value;
2454 this.reactivity.notifyProperty(obj);
2455 }
2456 /**
2457 * Notify the reactivity system that an object was mutated in-place.
2458 * Call this after operations like push, splice, append, etc.

Callers 3

setMethod · 0.45
setMethod · 0.45
setMethod · 0.45

Calls 1

notifyPropertyMethod · 0.45

Tested by

no test coverage detected