mirror of https://github.com/vector-im/riot-web
Merge pull request #79 from matrix-org/rav/dispatcher_leak
VideoView: Fix a dispatcher leakpull/21833/head
commit
4e4f8fad23
|
@ -25,8 +25,12 @@ var dis = require('../../../dispatcher');
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'VideoView',
|
displayName: 'VideoView',
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentDidMount: function() {
|
||||||
dis.register(this.onAction);
|
this.dispatcherRef = dis.register(this.onAction);
|
||||||
|
},
|
||||||
|
|
||||||
|
componentWillUnmount: function() {
|
||||||
|
dis.unregister(this.dispatcherRef);
|
||||||
},
|
},
|
||||||
|
|
||||||
getRemoteVideoElement: function() {
|
getRemoteVideoElement: function() {
|
||||||
|
|
Loading…
Reference in New Issue