We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb2e7d commit 4234052Copy full SHA for 4234052
src/jsmind.mind.js
@@ -219,8 +219,9 @@ export class Mind {
219
}
220
// clean all children
221
children.length = 0;
222
+ var node_parent = node.parent;
223
// remove from parent's children
- var sibling = node.parent.children;
224
+ var sibling = node_parent.children;
225
var si = sibling.length;
226
while (si--) {
227
if (sibling[si].id == node.id) {
@@ -236,7 +237,7 @@ export class Mind {
236
237
238
// remove it's self
239
node = null;
- //delete node;
240
+ this._update_index(node_parent);
241
return true;
242
243
_put_node(node) {
0 commit comments