MCPcopy
hub / github.com/tilemill-project/tilemill / removeChildrenAndAdd

Function removeChildrenAndAdd

assets/js/codemirror.js:8407–8409  ·  view source on GitHub ↗
(parent, e)

Source from the content-addressed store, hash-verified

8405 }
8406
8407 function removeChildrenAndAdd(parent, e) {
8408 return removeChildren(parent).appendChild(e);
8409 }
8410
8411 var contains = CodeMirror.contains = function(parent, child) {
8412 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