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

Function removeChildrenAndAdd

static/mergely/lib/codemirror.js:8405–8407  ·  view source on GitHub ↗
(parent, e)

Source from the content-addressed store, hash-verified

8403 }
8404
8405 function removeChildrenAndAdd(parent, e) {
8406 return removeChildren(parent).appendChild(e);
8407 }
8408
8409 var contains = CodeMirror.contains = function(parent, child) {
8410 if (child.nodeType == 3) // Android browser always returns false when child is a textnode

Callers 10

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

Calls 1

removeChildrenFunction · 0.70

Tested by

no test coverage detected