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

Method mountCallback

src/preact/base-element.js:472–481  ·  view source on GitHub ↗

@override

()

Source from the content-addressed store, hash-verified

470
471 /** @override */
472 mountCallback() {
473 discover(this.element);
474 const Ctor = /** @type {typeof PreactBaseElement} */ (
475 /** @type {?} */ (this.constructor)
476 );
477 if (Ctor.loadable && this.getProp('loading') != Loading_Enum.AUTO) {
478 this.mutateProps({'loading': Loading_Enum.AUTO});
479 this.resetLoading_ = false;
480 }
481 }
482
483 /** @override */
484 unmountCallback() {

Callers

nothing calls this directly

Calls 2

mutatePropsMethod · 0.95
discoverFunction · 0.90

Tested by

no test coverage detected