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

Method whenReady

src/service/template-impl.js:54–56  ·  view source on GitHub ↗

* Waits for template to be fully initialized. * @param {!Element} templateElement * @return {!Promise}

(templateElement)

Source from the content-addressed store, hash-verified

52 * @return {!Promise}
53 */
54 whenReady(templateElement) {
55 return this.getImplementation_(templateElement).then(EMPTY_FUNC);
56 }
57
58 /**
59 * Inserts the specified template element.

Callers

nothing calls this directly

Calls 2

getImplementation_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected