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

Method pause

src/custom-element.js:1688–1700  ·  view source on GitHub ↗

* Pauses the element. * * @package @final

()

Source from the content-addressed store, hash-verified

1686 * @package @final
1687 */
1688 pause() {
1689 if (!this.isBuilt()) {
1690 // Not built yet.
1691 return;
1692 }
1693
1694 this.impl_.pauseCallback();
1695
1696 // Legacy unlayoutOnPause support.
1697 if (!this.R1() && this.impl_.unlayoutOnPause()) {
1698 this.unlayout_();
1699 }
1700 }
1701
1702 /**
1703 * Requests the resource to resume its activity when the document returns

Callers 1

unmountMethod · 0.95

Calls 5

isBuiltMethod · 0.95
R1Method · 0.95
unlayout_Method · 0.95
pauseCallbackMethod · 0.45
unlayoutOnPauseMethod · 0.45

Tested by

no test coverage detected