diff --git a/baumgen.js b/baumgen.js index 438fc50..dc1a2fa 100644 --- a/baumgen.js +++ b/baumgen.js @@ -182,8 +182,7 @@ class EllipseCrown extends Crown { class Branch { - constructor(data, parentBranch=null) { - //this.parentBranch = parentBranch; + constructor(data) { Object.assign(this, data); if(typeof this.forks !== "undefined") { for (let fork of this.forks) {