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:
@@ -19,7 +19,7 @@ function find_boundary_tr(initial_tr, iterate_row) {
|
||||
// To ensure we can't enter an infinite loop, bail out (and let the
|
||||
// browser handle the copy-paste on its own) if we don't hit what we
|
||||
// are looking for within 10 rows.
|
||||
for (j = 0; (!tr.is('.message_row')) && j < 10; j++) {
|
||||
for (j = 0; (!tr.is('.message_row')) && j < 10; j += 1) {
|
||||
tr = iterate_row(tr);
|
||||
}
|
||||
if (j === 10) {
|
||||
@@ -41,7 +41,7 @@ function copy_handler(e) {
|
||||
var start_data, end_data;
|
||||
var skip_same_td_check = false;
|
||||
var div = $('<div>'), content;
|
||||
for (i = 0; i < selection.rangeCount; i++) {
|
||||
for (i = 0; i < selection.rangeCount; i += 1) {
|
||||
range = selection.getRangeAt(i);
|
||||
ranges.push(range);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user