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

Method getAmpDoc

src/base-element.js:347–349  ·  view source on GitHub ↗

* Returns the associated ampdoc. Only available when `buildCallback` and * going forward. It throws an exception before `buildCallback`. * @return {!./service/ampdoc-impl.AmpDoc}

()

Source from the content-addressed store, hash-verified

345 * @return {!./service/ampdoc-impl.AmpDoc}
346 */
347 getAmpDoc() {
348 return this.element.getAmpDoc();
349 }
350
351 /**
352 * @public

Callers 15

getViewportMethod · 0.95
collapseMethod · 0.95
attemptCollapseMethod · 0.95
forceChangeHeightMethod · 0.95
attemptChangeHeightMethod · 0.95
attemptChangeSizeMethod · 0.95
measureElementMethod · 0.95
measureMutateElementMethod · 0.95
expandMethod · 0.95
mockLandscapeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected