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

Function _removeChild

ServerEditorWeb/ace/worker-xml.js:2232–2247  ·  view source on GitHub ↗
(parentNode,child)

Source from the content-addressed store, hash-verified

2230 }
2231}
2232function _removeChild(parentNode,child){
2233 var previous = child.previousSibling;
2234 var next = child.nextSibling;
2235 if(previous){
2236 previous.nextSibling = next;
2237 }else{
2238 parentNode.firstChild = next
2239 }
2240 if(next){
2241 next.previousSibling = previous;
2242 }else{
2243 parentNode.lastChild = previous;
2244 }
2245 _onUpdateChild(parentNode.ownerDocument,parentNode);
2246 return child;
2247}
2248function _insertBefore(parentNode,newChild,nextChild){
2249 var cp = newChild.parentNode;
2250 if(cp){

Callers 1

worker-xml.jsFile · 0.85

Calls 1

_onUpdateChildFunction · 0.85

Tested by

no test coverage detected