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

Method setProperty

www/js/_hyperscript.esm.js:2459–2462  ·  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

2457 * @param {any} value
2458 */
2459 setProperty(obj, property, value) {
2460 obj[property] = value;
2461 this.reactivity.notifyProperty(obj);
2462 }
2463 /**
2464 * Notify the reactivity system that an object was mutated in-place.
2465 * 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