Make MessageList.selected_id an accessor method

(imported from commit 144d12ba8be2de02900ef06c3413f660144de8bf)
This commit is contained in:
Zev Benjamin
2013-02-20 12:26:50 -05:00
parent 36798c8d67
commit 9e9b4c8541
7 changed files with 21 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ function show(tabname, focus_area) {
$('.message_comp').slideDown(100, function () {
// If the compose box is obscuring the currently selected message,
// scroll up until the message is no longer occluded.
if (current_msg_list.selected_id === -1) {
if (current_msg_list.selected_id() === -1) {
// If there's no selected message, there's no need to
// scroll the compose box to avoid it.
return;