MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / killNode

Function killNode

mini-code-edit/cm/lib/codemirror.js:1050–1054  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1048 if (!intact.length) lineDiv.innerHTML = "";
1049 else {
1050 function killNode(node) {
1051 var tmp = node.nextSibling;
1052 node.parentNode.removeChild(node);
1053 return tmp;
1054 }
1055 var domPos = 0, curNode = lineDiv.firstChild, n;
1056 for (var i = 0; i < intact.length; ++i) {
1057 var cur = intact[i];

Callers 1

patchDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected