MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / removeChildren

Function removeChildren

lib/web/CodeMirror/src/util/dom.js:14–18  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

12}
13
14export function removeChildren(e) {
15 for (let count = e.childNodes.length; count > 0; --count)
16 e.removeChild(e.firstChild)
17 return e
18}
19
20export function removeChildrenAndAdd(parent, e) {
21 return removeChildren(parent).appendChild(e)

Callers 7

updateDisplayIfNeededFunction · 0.90
patchDisplayFunction · 0.90
renderGuttersFunction · 0.90
textHeightFunction · 0.90
hasBadBidiRectsFunction · 0.90
removeChildrenAndAddFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected