##// END OF EJS Templates
connection: remove unused code
ergo -
r779:233ee50e default
parent child Browse files
Show More
@@ -26,13 +26,6 b' var registerViewChannels;'
26 channelsInfo: {},
26 channelsInfo: {},
27 urls: urls
27 urls: urls
28 };
28 };
29 this.channelNameParsers = [];
30
31 this.addChannelNameParser = function (fn) {
32 if (this.channelNameParsers.indexOf(fn) === -1) {
33 this.channelNameParsers.push(fn);
34 }
35 };
36
29
37 this.listen = function () {
30 this.listen = function () {
38 if (window.WebSocket) {
31 if (window.WebSocket) {
@@ -178,16 +171,6 b' var registerViewChannels;'
178 {channel: key, state: this.state.channelsInfo[key]});
171 {channel: key, state: this.state.channelsInfo[key]});
179 }
172 }
180 }
173 }
181 /**
182 * checks current channel list in state and if channel is not present
183 * converts them into executable "commands" and pushes them on topics
184 */
185 for (var i = 0; i < this.state.channels.length; i++) {
186 var channel = this.state.channels[i];
187 for (var j = 0; j < this.channelNameParsers.length; j++) {
188 this.channelNameParsers[j](channel);
189 }
190 }
191 };
174 };
192
175
193 this.run = function () {
176 this.run = function () {
General Comments 0
You need to be logged in to leave comments. Login now