MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / removeChildren

Function removeChildren

static/js/codemirror/codemirror.js:5007–5012  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

5005 }
5006
5007 function removeChildren(e) {
5008 // IE will break all parent-child relations in subnodes when setting innerHTML
5009 if (!ie) e.innerHTML = "";
5010 else while (e.firstChild) e.removeChild(e.firstChild);
5011 return e;
5012 }
5013
5014 function removeChildrenAndAdd(parent, e) {
5015 return removeChildren(parent).appendChild(e);

Callers 4

updateGuttersFunction · 0.85
patchDisplayFunction · 0.85
textHeightFunction · 0.85
removeChildrenAndAddFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected