MCPcopy Create free account
hub / github.com/ampproject/amphtml / mutatedAttributesCallback

Method mutatedAttributesCallback

src/base-element.js:1020–1022  ·  view source on GitHub ↗

* Called when one or more attributes are mutated. * Note: * - Must be called inside a mutate context. * - Boolean attributes have a value of `true` and `false` when * present and missing, respectively. * @param { * !JsonObject<string, (null|boolean|string|number|Array|Objec

(unusedMutations)

Source from the content-addressed store, hash-verified

1018 * } unusedMutations
1019 */
1020 mutatedAttributesCallback(unusedMutations) {
1021 // Subclasses may override.
1022 }
1023
1024 /**
1025 * Called when we just measured the layout rect of this element. Doing

Callers 3

test-amp-img.jsFile · 0.45
test-amp-img-v1.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected