MCPcopy
hub / github.com/reactjs/react-modal / drainPool

Function drainPool

specs/helper.js:54–56  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

52 * Remove every element from its parent and release the pool.
53 */
54export function drainPool(pool) {
55 pool.forEach(e => e.parentNode && e.parentNode.removeChild(e));
56}
57
58/**
59 * Every HTMLElement must be requested inside this function...

Callers 1

withElementCollectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…