We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88478b8 commit 41488b7Copy full SHA for 41488b7
app/assets/javascripts/components/Chat.es6.jsx
@@ -176,6 +176,8 @@ class Chat extends React.Component {
176
177
componentWillUnmount() {
178
$(this.refs.scrollable).unbind('mousewheel DOMMouseScroll')
179
+ $(window).off('video-resize')
180
+ $(window).off('video-time')
181
}
182
183
componentWillUpdate() {
app/assets/javascripts/components/Video.es6.jsx
@@ -34,6 +34,10 @@ class Video extends React.Component {
34
// this.jwplayer.on('all', this.onAll.bind(this))
35
36
37
+ componentWillUnmount() {
38
+ this.jwplayer.remove()
39
+ }
40
+
41
render() {
42
return (
43
<div>
0 commit comments