MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / _onUpdateChild

Function _onUpdateChild

ServerEditorWeb/ace/worker-xml.js:2215–2231  ·  view source on GitHub ↗
(doc,el,newChild)

Source from the content-addressed store, hash-verified

2213 }
2214}
2215function _onUpdateChild(doc,el,newChild){
2216 if(doc && doc._inc){
2217 doc._inc++;
2218 var cs = el.childNodes;
2219 if(newChild){
2220 cs[cs.length++] = newChild;
2221 }else{
2222 var child = el.firstChild;
2223 var i = 0;
2224 while(child){
2225 cs[i++] = child;
2226 child =child.nextSibling;
2227 }
2228 cs.length = i;
2229 }
2230 }
2231}
2232function _removeChild(parentNode,child){
2233 var previous = child.previousSibling;
2234 var next = child.nextSibling;

Callers 3

_removeChildFunction · 0.85
_insertBeforeFunction · 0.85
_appendSingleChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected