mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
eslint: change no-plusplus from warning to 2 and fix violations.
This commit is contained in:
@@ -61,7 +61,7 @@ function _fade_messages() {
|
||||
normal_display = false;
|
||||
|
||||
// Update the visible messages first, before the compose box opens
|
||||
for (i = 0; i < visible_groups.length; i++) {
|
||||
for (i = 0; i < visible_groups.length; i += 1) {
|
||||
first_row = rows.first_message_in_group(visible_groups[i]);
|
||||
first_message = current_msg_list.get(rows.id(first_row));
|
||||
should_fade_group = !fade_heuristic(focused_recipient, first_message);
|
||||
@@ -83,7 +83,7 @@ function _fade_messages() {
|
||||
|
||||
// Note: The below algorithm relies on the fact that all_elts is
|
||||
// sorted as it would be displayed in the message view
|
||||
for (i = 0; i < all_groups.length; i++) {
|
||||
for (i = 0; i < all_groups.length; i += 1) {
|
||||
var group_elt = $(all_groups[i]);
|
||||
should_fade_group = !fade_heuristic(focused_recipient, rows.recipient_from_group(group_elt));
|
||||
change_fade_state(group_elt, should_fade_group);
|
||||
|
||||
Reference in New Issue
Block a user