MCPcopy Create free account
hub / github.com/TruthHun/BookStack / removeChildren

Function removeChildren

static/editor.md/lib/codemirror/lib/codemirror.js:8163–8167  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8161 };
8162
8163 function removeChildren(e) {
8164 for (var count = e.childNodes.length; count > 0; --count)
8165 e.removeChild(e.firstChild);
8166 return e;
8167 }
8168
8169 function removeChildrenAndAdd(parent, e) {
8170 return removeChildren(parent).appendChild(e);

Callers 6

updateGuttersFunction · 0.70
updateDisplayIfNeededFunction · 0.70
patchDisplayFunction · 0.70
textHeightFunction · 0.70
removeChildrenAndAddFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected