MCPcopy Index your code
hub / github.com/ampproject/amphtml / loadPromise

Method loadPromise

src/base-element.js:675–677  ·  view source on GitHub ↗

* Returns a promise that will resolve or fail based on the element's 'load' * and 'error' events. * @param {T} element * @return {!Promise } * @template T * @final

(element)

Source from the content-addressed store, hash-verified

673 * @final
674 */
675 loadPromise(element) {
676 return loadPromise(element);
677 }
678
679 /**
680 * Registers the action handler for the method with the specified name.

Callers 15

layoutCallbackMethod · 0.80
initMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
buildIframe_Method · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80

Calls 1

loadPromiseFunction · 0.90

Tested by

no test coverage detected