Fix player dispose exception

This commit is contained in:
Chocobozzz 2018-03-02 09:15:05 +01:00
parent 059f3b0dfb
commit ff7589ba1b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 12 deletions

View File

@ -111,10 +111,6 @@ class ResolutionMenuButton extends MenuButton {
buildCSSClass () {
return super.buildCSSClass() + ' vjs-resolution-button'
}
dispose () {
this.parentNode.removeChild(this)
}
}
MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton)
@ -135,10 +131,6 @@ class PeerTubeLinkButton extends Button {
handleClick () {
this.player_.pause()
}
dispose () {
this.parentNode.removeChild(this)
}
}
Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton)
@ -226,10 +218,6 @@ class WebTorrentButton extends Button {
return div
}
dispose () {
this.parentNode.removeChild(this)
}
}
Button.registerComponent('WebTorrentButton', WebTorrentButton)