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

Method getImpl

src/custom-element.js:1570–1573  ·  view source on GitHub ↗

* Returns reference to upgraded implementation. * @param {boolean} waitForBuild If true, waits for element to be built before * resolving the returned Promise. Default is true. * @return {!Promise<!./base-element.BaseElement>}

(waitForBuild = true)

Source from the content-addressed store, hash-verified

1568 * @return {!Promise<!./base-element.BaseElement>}
1569 */
1570 getImpl(waitForBuild = true) {
1571 const waitFor = waitForBuild ? this.build() : this.createImpl_();
1572 return waitFor.then(() => this.impl_);
1573 }
1574
1575 /**
1576 * @return {!Promise<!./base-element.BaseElement>}

Callers 15

getApiMethod · 0.95
whenUpgradedFunction · 0.80
triggerFunction · 0.80
test-amp-pixel.jsFile · 0.80
test-amp-img.jsFile · 0.80

Calls 3

buildMethod · 0.95
createImpl_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected