Commits

nakamura committed 8f3ac0a

chat.js: rename ChannelListView.scrollIntoViewIfNeeded

Comments (0)

Files changed (1)

tai/service/static/js/chat.js

             selected.removeClass('selected');
             next.addClass('selected');
 
-            this.scrollIntoViewIfNeeded(next[0]);
+            this.scrollChannelIntoViewIfNeeded(next[0]);
         }
     },
 
             selected.removeClass('selected');
             prev.addClass('selected');
 
-            this.scrollIntoViewIfNeeded(prev[0]);
+            this.scrollChannelIntoViewIfNeeded(prev[0]);
         }
     },
 
-    scrollIntoViewIfNeeded: function(elem) {
+    scrollChannelIntoViewIfNeeded: function(elem) {
         var parent = $('.tab-content')[0];
         var overTop = elem.offsetTop - parent.offsetTop < parent.scrollTop;
         var overBottom = (elem.offsetTop - parent.offsetTop + elem.clientHeight) > (parent.scrollTop + parent.clientHeight);