mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
js: Convert _.indexOf(a, …) to a.indexOf(…).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
29dbf8ec77
commit
788c5afbcf
@@ -9,7 +9,7 @@ function add_pending_request(jqXHR) {
|
||||
}
|
||||
|
||||
function remove_pending_request(jqXHR) {
|
||||
const pending_request_index = _.indexOf(pending_requests, jqXHR);
|
||||
const pending_request_index = pending_requests.indexOf(jqXHR);
|
||||
if (pending_request_index !== -1) {
|
||||
pending_requests.splice(pending_request_index, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user