eslint: change no-plusplus from warning to 2 and fix violations.

This commit is contained in:
kevv87
2016-11-30 18:05:04 +00:00
committed by Tim Abbott
parent c90da24541
commit e6369fc29b
23 changed files with 41 additions and 41 deletions

View File

@@ -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);