From 4f7fa8474d4d8bc633cdfe4d829f02aa1f4b8f41 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 1 Dec 2019 22:19:45 -0500 Subject: Mark functions as private --- ext/bg/js/settings/anki.js | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/settings/anki.js b/ext/bg/js/settings/anki.js index aa89c6bf..0a75d229 100644 --- a/ext/bg/js/settings/anki.js +++ b/ext/bg/js/settings/anki.js @@ -20,7 +20,7 @@ let _ankiDataPopulated = false; -function ankiSpinnerShow(show) { +function _ankiSpinnerShow(show) { const spinner = $('#anki-spinner'); if (show) { spinner.show(); @@ -29,7 +29,7 @@ function ankiSpinnerShow(show) { } } -function ankiErrorShow(error) { +function _ankiErrorShow(error) { const dialog = $('#anki-error'); if (error) { dialog.show().text(error); @@ -52,7 +52,7 @@ function ankiFieldsToDict(selection) { return result; } -async function ankiDeckAndModelPopulate(options) { +async function _ankiDeckAndModelPopulate(options) { const ankiFormat = $('#anki-format').hide(); const deckNames = await utilAnkiGetDeckNames(); @@ -66,15 +66,15 @@ async function ankiDeckAndModelPopulate(options) { modelNames.sort().forEach((name) => ankiModel.append($('