diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-02 09:15:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-02 09:15:05 +0100 |
commit | ff7589ba1b27e6ef31452bf485f1f193f5c4c28e (patch) | |
tree | 8e1fb0692302e85cf85a9672da8495e747b29524 /client/src | |
parent | 059f3b0dfb48bd96c47238369911be3c36b2183d (diff) | |
download | PeerTube-ff7589ba1b27e6ef31452bf485f1f193f5c4c28e.tar.gz PeerTube-ff7589ba1b27e6ef31452bf485f1f193f5c4c28e.tar.zst PeerTube-ff7589ba1b27e6ef31452bf485f1f193f5c4c28e.zip |
Fix player dispose exception
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 12 |
1 files changed, 0 insertions, 12 deletions
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 { | |||
111 | buildCSSClass () { | 111 | buildCSSClass () { |
112 | return super.buildCSSClass() + ' vjs-resolution-button' | 112 | return super.buildCSSClass() + ' vjs-resolution-button' |
113 | } | 113 | } |
114 | |||
115 | dispose () { | ||
116 | this.parentNode.removeChild(this) | ||
117 | } | ||
118 | } | 114 | } |
119 | MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton) | 115 | MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton) |
120 | 116 | ||
@@ -135,10 +131,6 @@ class PeerTubeLinkButton extends Button { | |||
135 | handleClick () { | 131 | handleClick () { |
136 | this.player_.pause() | 132 | this.player_.pause() |
137 | } | 133 | } |
138 | |||
139 | dispose () { | ||
140 | this.parentNode.removeChild(this) | ||
141 | } | ||
142 | } | 134 | } |
143 | Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton) | 135 | Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton) |
144 | 136 | ||
@@ -226,10 +218,6 @@ class WebTorrentButton extends Button { | |||
226 | 218 | ||
227 | return div | 219 | return div |
228 | } | 220 | } |
229 | |||
230 | dispose () { | ||
231 | this.parentNode.removeChild(this) | ||
232 | } | ||
233 | } | 221 | } |
234 | Button.registerComponent('WebTorrentButton', WebTorrentButton) | 222 | Button.registerComponent('WebTorrentButton', WebTorrentButton) |
235 | 223 | ||