aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/generic-setting-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings/generic-setting-controller.js')
-rw-r--r--ext/js/pages/settings/generic-setting-controller.js3
1 files changed, 2 insertions, 1 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) {