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

Method destroy

src/friendly-iframe-embed.js:406–411  ·  view source on GitHub ↗

* Ensures that all resources from this iframe have been released.

()

Source from the content-addressed store, hash-verified

404 * Ensures that all resources from this iframe have been released.
405 */
406 destroy() {
407 disposeServicesForEmbed(this.win);
408 if (this.ampdoc) {
409 this.ampdoc.dispose();
410 }
411 }
412
413 /**
414 * @return {time}

Callers

nothing calls this directly

Calls 2

disposeServicesForEmbedFunction · 0.90
disposeMethod · 0.45

Tested by

no test coverage detected