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

Method unmountCallback

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

@override

()

Source from the content-addressed store, hash-verified

482
483 /** @override */
484 unmountCallback() {
485 discover(this.element);
486 const Ctor = /** @type {typeof PreactBaseElement} */ (
487 /** @type {?} */ (this.constructor)
488 );
489 if (Ctor.loadable) {
490 this.mutateProps({'loading': Loading_Enum.UNLOAD});
491 }
492 this.updateIsPlaying_(false);
493 this.mediaQueryProps_?.dispose();
494 }
495
496 /**
497 * @protected

Callers

nothing calls this directly

Calls 4

mutatePropsMethod · 0.95
discoverFunction · 0.90
updateIsPlaying_Method · 0.80
disposeMethod · 0.45

Tested by

no test coverage detected