MCPcopy Create free account
hub / github.com/ElemeFE/element-react / removeChild

Method removeChild

src/tree/model/node.js:186–196  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

184 }
185
186 removeChild(child) {
187 const index = this.childNodes.indexOf(child);
188
189 if (index > -1) {
190 this.store && this.store.deregisterNode(child);
191 child.parent = null;
192 this.childNodes.splice(index, 1);
193 }
194
195 this.updateLeafState();
196 }
197
198 removeChildByData(data) {
199 let targetNode = null;

Callers 10

removeChildByDataMethod · 0.95
willUnmountFunction · 0.80
nextFunction · 0.80
componentWillUnmountMethod · 0.80
getScrollBarWidthFunction · 0.80
componentWillUnmountMethod · 0.80
getScrollBarWidthFunction · 0.80
MessageFunction · 0.80
removeMethod · 0.80
removeResizeListenerFunction · 0.80

Calls 2

updateLeafStateMethod · 0.95
deregisterNodeMethod · 0.80

Tested by

no test coverage detected