Fix player dispose exception
This commit is contained in:
parent
059f3b0dfb
commit
ff7589ba1b
|
@ -111,10 +111,6 @@ class ResolutionMenuButton extends MenuButton {
|
||||||
buildCSSClass () {
|
buildCSSClass () {
|
||||||
return super.buildCSSClass() + ' vjs-resolution-button'
|
return super.buildCSSClass() + ' vjs-resolution-button'
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose () {
|
|
||||||
this.parentNode.removeChild(this)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton)
|
MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton)
|
||||||
|
|
||||||
|
@ -135,10 +131,6 @@ class PeerTubeLinkButton extends Button {
|
||||||
handleClick () {
|
handleClick () {
|
||||||
this.player_.pause()
|
this.player_.pause()
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose () {
|
|
||||||
this.parentNode.removeChild(this)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton)
|
Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton)
|
||||||
|
|
||||||
|
@ -226,10 +218,6 @@ class WebTorrentButton extends Button {
|
||||||
|
|
||||||
return div
|
return div
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose () {
|
|
||||||
this.parentNode.removeChild(this)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Button.registerComponent('WebTorrentButton', WebTorrentButton)
|
Button.registerComponent('WebTorrentButton', WebTorrentButton)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue