diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-27 22:30:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 22:30:45 -0400 |
commit | 2098d2faaeb1658ef753eb9f4ac123698938480e (patch) | |
tree | 72a92c3c9a2f3de4c6e5419d4e4bda55d5d04c6a /ext/js/dom/dom-data-binder.js | |
parent | af04a4f414ae0a2dce6c46dc30c9fdee119912c2 (diff) |
Hotkey arguments (#1565)
* Update display
* Move scope definitions
* Update scopes button after changing action
* Don't show menu if empty
* Improve scope updating
* Update style
* Simplify
* Add argument to settings
* Update convertToNumber implementation
* Add support for arguments
* Pass argument to action handler
* Update hotkey action definitions
* Remove x3 options
Diffstat (limited to 'ext/js/dom/dom-data-binder.js')
-rw-r--r-- | ext/js/dom/dom-data-binder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/dom/dom-data-binder.js b/ext/js/dom/dom-data-binder.js index 292b2f67..65e91233 100644 --- a/ext/js/dom/dom-data-binder.js +++ b/ext/js/dom/dom-data-binder.js @@ -210,7 +210,7 @@ class DOMDataBinder { static convertToNumber(value, constraints) { value = parseFloat(value); - if (!Number.isFinite(value)) { return 0; } + if (!Number.isFinite(value)) { value = 0; } let {min, max, step} = constraints; min = DOMDataBinder.convertToNumberOrNull(min); |