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

Method setProperty

www/js/_hyperscript-max.js:2460–2463  ·  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

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