From 41a9c8369161586a65d968f7893b46c1ea4c1c4e Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 28 Sep 2013 12:33:48 +0100 Subject: [PATCH] /clear command fix --- client/assets/src/views/channel.js | 10 ++++++++++ client/assets/src/views/panel.js | 6 ------ 2 files changed, 10 insertions(+), 6 deletions(-) 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); - //}); }, -- 2.25.1