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

Method setProperty

src/core/runtime/runtime.js:444–447  ·  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

442 * @param {any} value
443 */
444 setProperty(obj, property, value) {
445 obj[property] = value;
446 this.reactivity.notifyProperty(obj);
447 }
448
449 /**
450 * Notify the reactivity system that an object was mutated in-place.

Callers 3

setMethod · 0.45
setMethod · 0.45
setMethod · 0.45

Calls 1

notifyPropertyMethod · 0.45

Tested by

no test coverage detected