MCPcopy
hub / github.com/GoogleChromeLabs/ui-element-samples / removeInertRoot

Method removeInertRoot

3d-card-flip/inert.js:364–369  ·  view source on GitHub ↗

* Remove the given inert root from this inert node's set of managing inert roots. * If the set of managing inert roots becomes empty, this node is no longer inert, * so the object should be destroyed. * @param {InertRoot} inertRoot

(inertRoot)

Source from the content-addressed store, hash-verified

362 * @param {InertRoot} inertRoot
363 */
364 removeInertRoot(inertRoot) {
365 this._throwIfDestroyed();
366 this._inertRoots.delete(inertRoot);
367 if (this._inertRoots.size === 0)
368 this.destructor();
369 }
370}
371
372/**

Callers 2

inert.min.jsFile · 0.80
deregisterMethod · 0.80

Calls 2

_throwIfDestroyedMethod · 0.95
destructorMethod · 0.95

Tested by

no test coverage detected