diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-26 15:07:11 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-26 17:18:17 -0500 |
commit | 7f9a73135da4244e779f32179c7d19e6984bbc55 (patch) | |
tree | 9ba137365174a89f7960634bbb4d1859ba0e86dd /ext/bg/js/settings.js | |
parent | 0ebf6763051cc5e162efcca4846dd3ac7eae1e0e (diff) |
Remove utilAsync
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r-- | ext/bg/js/settings.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js index ab267c32..d1f9d0d1 100644 --- a/ext/bg/js/settings.js +++ b/ext/bg/js/settings.js @@ -155,8 +155,8 @@ async function formWrite(options) { } function formSetupEventListeners() { - $('input, select, textarea').not('.anki-model').not('.ignore-form-changes *').change(utilAsync(onFormOptionsChanged)); - $('.anki-model').change(utilAsync(onAnkiModelChanged)); + $('input, select, textarea').not('.anki-model').not('.ignore-form-changes *').change((e) => onFormOptionsChanged(e)); + $('.anki-model').change((e) => onAnkiModelChanged(e)); } function formUpdateVisibility(options) { @@ -219,7 +219,7 @@ async function onReady() { chrome.runtime.onMessage.addListener(onMessage); } -$(document).ready(utilAsync(onReady)); +$(document).ready(() => onReady()); /* @@ -582,7 +582,7 @@ async function ankiFieldsPopulate(element, options) { container.append($(html)); } - tab.find('.anki-field-value').change(utilAsync(onFormOptionsChanged)); + tab.find('.anki-field-value').change((e) => onFormOptionsChanged(e)); tab.find('.marker-link').click(onAnkiMarkerClicked); } |