scripting: fix legacy touch state
This commit is contained in:
parent
f58d266902
commit
73231ec5d4
1 changed files with 2 additions and 3 deletions
|
|
@ -239,14 +239,13 @@ class Widget extends EventEmitter {
|
|||
widget: this,
|
||||
property: 'onValue',
|
||||
code: this.getProp('onValue'),
|
||||
context: {value: 0, id: '', touch: 0}
|
||||
context: {value: 0, id: '', touch: undefined}
|
||||
})
|
||||
this.on('change', (e)=>{
|
||||
if (e.widget === this && this.mounted && !e.options.fromEdit && e.options.script !== false) {
|
||||
this.scripts.onValue.run({
|
||||
value: e.options.widget ? e.options.widget.value : this.value,
|
||||
id: e.options.id || e.id,
|
||||
touch: undefined
|
||||
id: e.options.id || e.id
|
||||
}, e.options)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue