Fix player dispose exception
This commit is contained in:
parent
059f3b0dfb
commit
ff7589ba1b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue