From: Cory Chaplin Date: Mon, 3 Mar 2014 19:44:54 +0000 (+0100) Subject: Keep channel length up to date X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=150391ee52fd2bbb83c2a3593fe1431e2ce70200;p=KiwiIRC.git Keep channel length up to date --- 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]);