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

Method mutate

src/service/vsync-impl.js:214–219  ·  view source on GitHub ↗

* Runs the mutate operation via vsync. * @param {function():undefined} mutator

(mutator)

Source from the content-addressed store, hash-verified

212 * @param {function():undefined} mutator
213 */
214 mutate(mutator) {
215 this.run({
216 measure: undefined, // For uniform hidden class.
217 mutate: mutator,
218 });
219 }
220
221 /**
222 * Runs `mutate` wrapped in a promise.

Callers 15

test-vsync.jsFile · 0.45
test-mutator.jsFile · 0.45
runVsyncFunction · 0.45
runVsyncFunction · 0.45
toggleInputClass_Method · 0.45
schedule_Method · 0.45
closeMethod · 0.45
returnFixedElements_Method · 0.45
tearDownElement_Method · 0.45
setLightboxModeMethod · 0.45

Calls 1

runMethod · 0.95

Tested by

no test coverage detected