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

Method detachedCallback

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

* Override in subclass to adjust the element when it is being removed from * the DOM. Could e.g. be used to remove a listener.

()

Source from the content-addressed store, hash-verified

456 * the DOM. Could e.g. be used to remove a listener.
457 */
458 detachedCallback() {
459 // Subclasses may override.
460 }
461
462 /**
463 * Set itself as a container element that can be monitored by the scheduler

Callers 1

disconnectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected