/clear command fix
authorDarren <darren@darrenwhitlen.com>
Sat, 28 Sep 2013 11:33:48 +0000 (12:33 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 28 Sep 2013 11:33:48 +0000 (12:33 +0100)
client/assets/src/views/channel.js
client/assets/src/views/panel.js

index b6b32f3393e1131023ebcd750c3b858573f1549a..b95dac1823988c35cda2ea22aec3bc0280a035c7 100644 (file)
@@ -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 = '',
index 0e71206606bc1ab364793d79f01904742bb7cdf8..34b5bd932f88d41b34ff2b2b2fe679086e285c02 100644 (file)
@@ -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);
-        //});
     },