()
| 93 | } |
| 94 | |
| 95 | private unbindAudio(): void { |
| 96 | if (!this.audioElement) { |
| 97 | return; |
| 98 | } |
| 99 | this.audioElement.removeEventListener('timeupdate', this.updateCursor); |
| 100 | this.audioElement.removeEventListener('durationchange', this.updateCursor); |
| 101 | this.audioElement.removeEventListener('seeked', this.updateCursor); |
| 102 | this.audioElement = null; |
| 103 | } |
| 104 | |
| 105 | private hide(): void { |
| 106 | this.root.classList.add('hidden'); |
no test coverage detected