Recording scroll back fix, causing #608
authorDarren <darren@darrenwhitlen.com>
Wed, 22 Oct 2014 23:19:40 +0000 (00:19 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 22 Oct 2014 23:19:40 +0000 (00:19 +0100)
client/src/models/channel.js

index 4193b082dd4388f7bb8f2c5a9c5798387613cd85..29a8dfa87647d59e307daffdcf552feefb6ecb69 100644 (file)
@@ -99,7 +99,7 @@ _kiwi.model.Channel = _kiwi.model.Panel.extend({
 \r
             // Keep the scrolback limited\r
             if (bs.length > scrollback) {\r
-                bs.splice(scrollback);\r
+                bs = _.last(bs, scrollback);\r
             }\r
             this.set({"scrollback": bs}, {silent: true});\r
         }\r