From 64ab3075fcf789f88cb6f49f807ee07e3a3b3ad0 2016-10-04 16:47:17 From: Marcin Lulek Date: 2016-10-04 16:47:17 Subject: [PATCH] channelstream: bind this to proper context --- diff --git a/backend/src/appenlight/static/js/appenlight.js b/backend/src/appenlight/static/js/appenlight.js index d3f3b31..c2ce432 100644 --- a/backend/src/appenlight/static/js/appenlight.js +++ b/backend/src/appenlight/static/js/appenlight.js @@ -7061,7 +7061,7 @@ function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResour stateHolder.websocket.onerror = function (event) { }; - }); + }.bind(this)); } ;// # Copyright (C) 2010-2016 RhodeCode GmbH diff --git a/frontend/src/components/channelstream.js b/frontend/src/components/channelstream.js index 4a4f69a..35ab0cc 100644 --- a/frontend/src/components/channelstream.js +++ b/frontend/src/components/channelstream.js @@ -56,5 +56,5 @@ function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResour stateHolder.websocket.onerror = function (event) { console.log('error'); }; - }); + }.bind(this)); }