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

Method ensureLoaded

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

@override

()

Source from the content-addressed store, hash-verified

458
459 /** @override */
460 ensureLoaded() {
461 const Ctor = /** @type {typeof PreactBaseElement} */ (
462 /** @type {?} */ (this.constructor)
463 );
464 if (!Ctor.loadable) {
465 return;
466 }
467 this.mutateProps({'loading': Loading_Enum.EAGER});
468 this.resetLoading_ = true;
469 }
470
471 /** @override */
472 mountCallback() {

Callers

nothing calls this directly

Calls 1

mutatePropsMethod · 0.95

Tested by

no test coverage detected