MCPcopy
hub / github.com/ampproject/amphtml / sync

Method sync

src/polyfills/custom-elements.js:491–495  ·  view source on GitHub ↗

* This causes a synchronous handling of all the Mutation Observer's tracked * mutations. This does nothing until the mutation observer is actually * registered on the first Custom Element definition.

()

Source from the content-addressed store, hash-verified

489 * registered on the first Custom Element definition.
490 */
491 sync() {
492 if (this.mutationObserver_) {
493 this.handleRecords_(this.mutationObserver_.takeRecords());
494 }
495 }
496
497 /**
498 * Handle all the Mutation Observer's Mutation Records.

Callers 15

index.jsFile · 0.80
mergeFilesTxt_Function · 0.80
upload-release.jsFile · 0.80
expandFileListsFunction · 0.80
serve.jsFile · 0.80
generateListFunction · 0.80
checkJsonSchemasFunction · 0.80
listVendorsFunction · 0.80
filesContainingPatternFunction · 0.80
runTests_Function · 0.80

Calls 2

handleRecords_Method · 0.95
takeRecordsMethod · 0.45

Tested by

no test coverage detected