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

Function rm

lib/web/CodeMirror/src/display/update_display.js:216–224  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

214 let container = display.lineDiv, cur = container.firstChild
215
216 function rm(node) {
217 let next = node.nextSibling
218 // Works around a throw-scroll bug in OS X Webkit
219 if (webkit && mac && cm.display.currentWheelTarget == node)
220 node.style.display = "none"
221 else
222 node.parentNode.removeChild(node)
223 return next
224 }
225
226 let view = display.view, lineN = display.viewFrom
227 // Loop over the elements in the view, syncing cur (the DOM nodes

Callers 1

patchDisplayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected