Skip to content

Commit fe07075

Browse files
committed
binding makes no difference - put a null check in to catch the rogue exception
1 parent da6c565 commit fe07075

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/skins/vector/views/molecules/voip/VideoView.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = React.createClass({
2727
mixins: [VideoViewController],
2828

2929
componentWillMount: function() {
30-
dis.register(this.onAction.bind(this));
30+
dis.register(this.onAction);
3131
},
3232

3333
getRemoteVideoElement: function() {
@@ -41,6 +41,9 @@ module.exports = React.createClass({
4141
onAction: function(payload) {
4242
switch (payload.action) {
4343
case 'video_fullscreen':
44+
if (!this.refs.container) {
45+
return;
46+
}
4447
var element = this.refs.container.getDOMNode();
4548
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullscreen;
4649
requestMethod.call(element);

0 commit comments

Comments
 (0)