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

Method rootUpdated

src/core/context/subscriber.js:168–174  ·  view source on GitHub ↗

* Called when the node's root has changed. It can be a different root or * the node can be disconnected entirely.

()

Source from the content-addressed store, hash-verified

166 * the node can be disconnected entirely.
167 */
168 rootUpdated() {
169 const isConnected = this.isConnected_();
170 this.cleanup_();
171 if (isConnected) {
172 this.update_();
173 }
174 }
175
176 /**
177 * @return {boolean}

Callers

nothing calls this directly

Calls 3

isConnected_Method · 0.95
cleanup_Method · 0.95
update_Method · 0.95

Tested by

no test coverage detected