diff options
Diffstat (limited to 'ext/js/pages')
-rw-r--r-- | ext/js/pages/settings/generic-setting-controller.js | 3 | ||||
-rw-r--r-- | ext/js/pages/settings/keyboard-shortcuts-controller.js | 4 | ||||
-rw-r--r-- | ext/js/pages/settings/nested-popups-controller.js | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/ext/js/pages/settings/generic-setting-controller.js b/ext/js/pages/settings/generic-setting-controller.js index 58f472a2..68cb1155 100644 --- a/ext/js/pages/settings/generic-setting-controller.js +++ b/ext/js/pages/settings/generic-setting-controller.js @@ -17,6 +17,7 @@ /* globals * DOMDataBinder + * DocumentUtil */ class GenericSettingController { @@ -218,7 +219,7 @@ class GenericSettingController { _toNumber(value, data) { let {constraints} = data; if (!isObject(constraints)) { constraints = {}; } - return DOMDataBinder.convertToNumber(value, constraints); + return DocumentUtil.convertElementValueToNumber(value, constraints); } _toBoolean(value) { diff --git a/ext/js/pages/settings/keyboard-shortcuts-controller.js b/ext/js/pages/settings/keyboard-shortcuts-controller.js index 69acf275..5a3b94a6 100644 --- a/ext/js/pages/settings/keyboard-shortcuts-controller.js +++ b/ext/js/pages/settings/keyboard-shortcuts-controller.js @@ -16,7 +16,7 @@ */ /* global - * DOMDataBinder + * DocumentUtil * KeyboardMouseInputField * ObjectPropertyAccessor */ @@ -322,7 +322,7 @@ class KeyboardShortcutHotkeyEntry { let value = this._getArgumentInputValue(node); switch (template) { case 'hotkey-argument-move-offset': - value = `${DOMDataBinder.convertToNumber(value, node)}`; + value = `${DocumentUtil.convertElementValueToNumber(value, node)}`; break; } this._setArgument(value); diff --git a/ext/js/pages/settings/nested-popups-controller.js b/ext/js/pages/settings/nested-popups-controller.js index 8b6f02c5..cbee4e0e 100644 --- a/ext/js/pages/settings/nested-popups-controller.js +++ b/ext/js/pages/settings/nested-popups-controller.js @@ -16,7 +16,7 @@ */ /* global - * DOMDataBinder + * DocumentUtil */ class NestedPopupsController { @@ -52,7 +52,7 @@ class NestedPopupsController { _onNestedPopupsCountChange(e) { const node = e.currentTarget; - const value = Math.max(1, DOMDataBinder.convertToNumber(node.value, node)); + const value = Math.max(1, DocumentUtil.convertElementValueToNumber(node.value, node)); this._setPopupNestingMaxDepth(value); } |