From 7ae84d5ce1f130cb98f45b60a056de01b43ca0a8 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 25 Oct 2019 15:21:32 -0700 Subject: [PATCH] js: Break lines that become too long after converting var to const. Signed-off-by: Anders Kaseorg --- static/js/message_list_view.js | 3 ++- static/js/stats/stats.js | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js index c5fe744430..b222eca92e 100644 --- a/static/js/message_list_view.js +++ b/static/js/message_list_view.js @@ -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; } diff --git a/static/js/stats/stats.js b/static/js/stats/stats.js index 5fd9609bd1..fd00f5f906 100644 --- a/static/js/stats/stats.js +++ b/static/js/stats/stats.js @@ -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] + ')');