From: Darren Date: Sat, 28 Sep 2013 11:33:48 +0000 (+0100) Subject: /clear command fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=41a9c8369161586a65d968f7893b46c1ea4c1c4e;p=KiwiIRC.git /clear command fix --- diff --git a/client/assets/src/views/channel.js b/client/assets/src/views/channel.js index b6b32f3..b95dac1 100644 --- a/client/assets/src/views/channel.js +++ b/client/assets/src/views/channel.js @@ -43,6 +43,16 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({ }, + render: function () { + var that = this; + + this.$messages.empty(); + _.each(this.model.get('scrollback'), function (msg) { + that.newMsg(msg); + }); + }, + + newMsg: function (msg) { var re, line_msg, nick_colour_hex, nick_hex, is_highlight, msg_css_classes = '', diff --git a/client/assets/src/views/panel.js b/client/assets/src/views/panel.js index 0e71206..34b5bd9 100644 --- a/client/assets/src/views/panel.js +++ b/client/assets/src/views/panel.js @@ -28,12 +28,6 @@ _kiwi.view.Panel = Backbone.View.extend({ }, render: function () { - var that = this; - - //this.$el.empty(); - //_.each(this.model.get('scrollback'), function (msg) { - // that.newMsg(msg); - //}); },