MCPcopy Index your code
hub / github.com/ampproject/amphtml / mutatedAttributesCallback

Method mutatedAttributesCallback

src/custom-element.js:1809–1818  ·  view source on GitHub ↗

* Called when one or more attributes are mutated. * Note: Must be called inside a mutate context. * Note: Boolean attributes have a value of `true` and `false` when * present and missing, respectively. * @param {!JsonObject }

(mutations)

Source from the content-addressed store, hash-verified

1807 * @param {!JsonObject<string, (null|boolean|string|number|Array|Object)>} mutations
1808 */
1809 mutatedAttributesCallback(mutations) {
1810 if (this.impl_) {
1811 this.impl_.mutatedAttributesCallback(mutations);
1812 } else if (this.R1()) {
1813 // If amp-bind is trying to mutate an uninitialized BaseElement, it is probably about time
1814 // to initialize it.
1815 const scheduler = getSchedulerForDoc(this);
1816 scheduler.scheduleAsap(this);
1817 }
1818 }
1819
1820 /**
1821 * Enqueues the action with the element. If element has been upgraded and

Callers

nothing calls this directly

Calls 3

R1Method · 0.95
getSchedulerForDocFunction · 0.90
scheduleAsapMethod · 0.80

Tested by

no test coverage detected