Correctly checking if active panel != applet before scrolling down
authorDarren <darren@darrenwhitlen.com>
Sun, 2 Mar 2014 13:10:04 +0000 (13:10 +0000)
committerDarren <darren@darrenwhitlen.com>
Sun, 2 Mar 2014 13:10:04 +0000 (13:10 +0000)
client/src/views/panel.js

index b73fb4d3f2f3ac7bcf0be3b22205879fb9f7eac7..c22d6f07e155e4620669031c0dce93a56fedd33c 100644 (file)
@@ -57,7 +57,8 @@ _kiwi.view.Panel = Backbone.View.extend({
 
         _kiwi.app.view.doLayout();
 
-        if(!this.model.applet) this.scrollToBottom(true);
+        if (!this.model.isApplet())
+            this.scrollToBottom(true);
     },