switchers: fix regression that breaked them (fixes issue #113)

This commit is contained in:
jean-emmanuel 2017-11-10 09:09:41 +01:00
parent 3e4a8ecba8
commit ebdd0f223e
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@ module.exports = class _switchers_base extends _widgets_base {
if (widget && this.value._selected !== false && this.value[this.value._selected] && widget._isSwitcher !== true && this.isWatching(id, widget)) {
this.value[this.value._selected][id] = widget.abstract.getValue()
this.value[this.value._selected][id] = widget.getValue()
}