script: issue when using the options argument in set() (options leaked to subsequent set() calls in the script)
This commit is contained in:
parent
e2cd218c8d
commit
af53356d4e
2 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
# 1.8.9
|
||||
|
||||
- bug fixes
|
||||
- script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
|
||||
|
||||
# 1.8.8
|
||||
|
||||
- launcher
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class ScriptVm extends Vm {
|
|||
|
||||
this.sandbox.contentWindow.set = (id, value, extraOptions = {send: true, sync: true})=>{
|
||||
|
||||
var options = this.getValueOptions()
|
||||
var options = deepCopy(this.getValueOptions())
|
||||
options.fromScript = true
|
||||
|
||||
// if (id === options.id) options.sync = false // loop stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue