MCPcopy
hub / github.com/jagenjo/webglstudio.js / removeChildrenAndAdd

Function removeChildrenAndAdd

editor/js/extra/codemirror/codemirror.js:8410–8412  ·  view source on GitHub ↗
(parent, e)

Source from the content-addressed store, hash-verified

8408 }
8409
8410 function removeChildrenAndAdd(parent, e) {
8411 return removeChildren(parent).appendChild(e);
8412 }
8413
8414 var contains = CodeMirror.contains = function(parent, child) {
8415 if (child.nodeType == 3) // Android browser always returns false when child is a textnode

Callers 10

codemirror.jsFile · 0.85
paddingHFunction · 0.85
textHeightFunction · 0.85
charWidthFunction · 0.85
onDragOverFunction · 0.85
widgetHeightFunction · 0.85
zeroWidthElementFunction · 0.85
hasBadBidiRectsFunction · 0.85
hasBadZoomedRectsFunction · 0.85

Calls 1

removeChildrenFunction · 0.85

Tested by

no test coverage detected