Skip to content

Commit

Permalink
Bugfix: Nodes weren't deleted from their parents
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Dec 31, 2011
1 parent af60f4b commit 8a49f31
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
5 changes: 4 additions & 1 deletion buzzmap.js
Expand Up @@ -286,8 +286,11 @@
{
this.children[i].removeNode();
}

// remove me from parent
if(this.parent) this.parent.children.splice(this.parent.children.indexOf(this), 1);

// delete me from the node stack
// remove me from the node stack
this.obj.nodes.splice(this.obj.nodes.indexOf(this), 1);

// delete all associated lines
Expand Down
40 changes: 20 additions & 20 deletions buzzmap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

0 comments on commit 8a49f31

Please sign in to comment.