MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / removeChildrenAndAdd

Function removeChildrenAndAdd

lib/web/CodeMirror/src/util/dom.js:20–22  ·  view source on GitHub ↗
(parent, e)

Source from the content-addressed store, hash-verified

18}
19
20export function removeChildrenAndAdd(parent, e) {
21 return removeChildren(parent).appendChild(e)
22}
23
24export function elt(tag, content, className, style) {
25 let e = document.createElement(tag)

Callers 11

paddingHFunction · 0.90
textHeightFunction · 0.90
charWidthFunction · 0.90
widgetHeightFunction · 0.90
showSelectionMethod · 0.90
zeroWidthElementFunction · 0.90
hasBadBidiRectsFunction · 0.90
hasBadZoomedRectsFunction · 0.90
onDragOverFunction · 0.90

Calls 1

removeChildrenFunction · 0.70

Tested by

no test coverage detected