scripting: setVar not affecting all widgets when mutliple widgets match provided id
This commit is contained in:
parent
1ae5a33dcd
commit
cfa6bd7645
2 changed files with 3 additions and 2 deletions
|
|
@ -5,7 +5,8 @@
|
|||
- bug fixes
|
||||
- misc: sending typed arguments (`{type, value}` objects) should override the widget's `typeTags` definition
|
||||
- multixy: errors when `ephemeral` is `true`
|
||||
|
||||
- scripting: `setVar` not affecting all widgets when mutliple widgets match provided id
|
||||
|
||||
- widgets
|
||||
- renamed `script` to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
|
||||
- added `onCreate` script property to all widgets
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class ScriptVm extends Vm {
|
|||
Object.keys(widgetManager.idRoute).filter(key => key.match(new RegExp('^' + id.replace(/\*/g, '.*') + '$')))
|
||||
).filter(w => w !== widget)
|
||||
} else {
|
||||
widgets = this.resolveId(id).slice(0, 1)
|
||||
widgets = this.resolveId(id)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue