Removing scrollback divs fix
authorDarren <darren@darrenwhitlen.com>
Fri, 14 Sep 2012 09:55:55 +0000 (10:55 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 14 Sep 2012 09:55:55 +0000 (10:55 +0100)
client_backbone/dev/view.js

index 9fc152eb450b5bf34e27b0104a8a4ef79f20b914..b6f1b3ac830951787e22107ad2fb9eca90fbf1ce 100644 (file)
@@ -242,7 +242,7 @@ kiwi.view.Panel = Backbone.View.extend({
         // Make sure our DOM isn't getting too large (Acts as scrollback)\r
         this.msg_count++;\r
         if (this.msg_count > 250) {\r
-            $('.msg:first', this.div).remove();\r
+            $('.msg:first', this.$el).remove();\r
             this.msg_count--;\r
         }\r
     },\r