script: issue when using the options argument in set() (options leaked to subsequent set() calls in the script)

This commit is contained in:
jean-emmanuel 2021-02-21 14:24:05 +01:00
parent e2cd218c8d
commit af53356d4e
2 changed files with 6 additions and 1 deletions

View file

@ -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