From 150391ee52fd2bbb83c2a3593fe1431e2ce70200 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Mon, 3 Mar 2014 20:44:54 +0100 Subject: [PATCH] Keep channel length up to date --- client/src/applets/chanlist.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/applets/chanlist.js b/client/src/applets/chanlist.js index 2cc676a..9791a4a 100644 --- a/client/src/applets/chanlist.js +++ b/client/src/applets/chanlist.js @@ -31,7 +31,6 @@ var table = $('table', this.$el), tbody = table.children('tbody:first').detach(), that = this, - channels_length = this.channels.length, i; if (override_channels !== undefined) { @@ -79,7 +78,7 @@ } }); - for (i = 0; i < channels_length; i++) { + for (i = 0; i < this.channels.length; i++) { tbody[0].appendChild(this.channels[i].dom); } table[0].appendChild(tbody[0]); -- 2.25.1