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

Method constructor

extensions/amp-subscriptions/0.1/renderer.js:12–25  ·  view source on GitHub ↗

* @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc

(ampdoc)

Source from the content-addressed store, hash-verified

10 * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc
11 */
12 constructor(ampdoc) {
13 /** @const @private */
14 this.ampdoc_ = ampdoc;
15
16 /** @const @private {!../../../src/service/mutator-interface.MutatorInterface} */
17 this.mutator_ = Services.mutatorForDoc(ampdoc);
18
19 // Initial state is "unknown".
20 this.setGrantState(null);
21 this.getBodyElement_().classList.add(`${CSS_PREFIX}-ready`);
22
23 // Check and add progress bar.
24 this.addLoadingBar();
25 }
26
27 /**
28 * @return {!Element}

Callers

nothing calls this directly

Calls 4

setGrantStateMethod · 0.95
getBodyElement_Method · 0.95
addLoadingBarMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected