MCPcopy
hub / github.com/ampproject/amphtml / removeContainer

Method removeContainer

src/service/scheduler.js:159–168  ·  view source on GitHub ↗

* Removes the container and its observer that were set by the `setContainer`. * * @param {!Element} container

(container)

Source from the content-addressed store, hash-verified

157 * @param {!Element} container
158 */
159 removeContainer(container) {
160 const observer = this.containerMap_.get(container);
161 if (!observer) {
162 return;
163 }
164
165 // Disconnect. All children will be unobserved automatically.
166 observer.disconnect();
167 this.containerMap_.delete(container);
168 }
169
170 /** @private*/
171 signalScanReady_() {

Callers 2

test-scheduler.jsFile · 0.80

Calls 3

getMethod · 0.45
disconnectMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected