From ff7589ba1b27e6ef31452bf485f1f193f5c4c28e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 2 Mar 2018 09:15:05 +0100 Subject: Fix player dispose exception --- client/src/assets/player/peertube-videojs-plugin.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'client') diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 86cb858e2..a96f6d1a1 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -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) -- cgit v1.2.3