Rename variable spinner_button_count -> spinner_button_index.

This commit is contained in:
voussoir 2020-05-28 19:01:42 -07:00
parent 88a6708061
commit 2f5510fd0c

View file

@ -262,7 +262,7 @@ function init_button_with_confirm()
}); });
} }
var spinner_button_count = 0; var spinner_button_index = 0;
common.init_button_with_spinner = common.init_button_with_spinner =
function init_button_with_spinner() function init_button_with_spinner()
{ {
@ -317,8 +317,8 @@ function init_button_with_spinner()
} }
delete button.dataset.onclick; delete button.dataset.onclick;
var closer_id = "spinner_closer_" + spinner_button_count; var closer_id = "spinner_closer_" + spinner_button_index;
spinner_button_count += 1; spinner_button_index += 1;
window[closer_id] = function spinner_closer() window[closer_id] = function spinner_closer()
{ {
spin.hide(); spin.hide();