js: Break lines that become too long after converting var to const.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-10-25 15:21:32 -07:00 committed by Tim Abbott
parent 4d37dfcf85
commit 7ae84d5ce1
2 changed files with 7 additions and 2 deletions

View File

@ -1013,7 +1013,8 @@ MessageListView.prototype = {
// compose box.
var compose_textarea_default_height = 42;
var compose_textarea_current_height = $("#compose-textarea").height();
var expected_change = compose_textarea_current_height - compose_textarea_default_height;
var expected_change =
compose_textarea_current_height - compose_textarea_default_height;
var expected_offset = offset - expected_change;
need_user_to_scroll = expected_offset > scroll_amount;
}

View File

@ -529,7 +529,11 @@ function populate_messages_sent_by_message_type(data) {
};
function make_plot_data(time_series_data, num_steps) {
var plot_data = compute_summary_chart_data(time_series_data, num_steps, data.display_order);
var plot_data = compute_summary_chart_data(
time_series_data,
num_steps,
data.display_order
);
var labels = [];
for (var i = 0; i < plot_data.labels.length; i += 1) {
labels.push(plot_data.labels[i] + ' (' + plot_data.percentages[i] + ')');