()
| 71 | } |
| 72 | |
| 73 | updateBorders() { |
| 74 | this.borders = []; |
| 75 | if (this.children.length < 2) { |
| 76 | return; |
| 77 | } |
| 78 | for (let i = 0; i < this.children.length - 1; i++) { |
| 79 | const [firstPortion, secondPortion] = this.children.slice(i, i + 2); |
| 80 | |
| 81 | this.borders.push( |
| 82 | new PortionBorder(firstPortion, secondPortion, this) |
| 83 | ); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | hasPortion(portion: Portion) { |
| 88 | for (let i = 0; i < this.children.length; i++) { |
no test coverage detected