scripting: don't attempt to deep copy widget object

This commit is contained in:
jean-emmanuel 2023-06-03 06:52:16 +02:00
parent 617cc915bf
commit 15c38fa78e

View file

@ -69,7 +69,13 @@ class ScriptVm extends Vm {
this.checkContext('set')
var widget = this.getWidget()
var options = deepCopy(this.getValueOptions())
var options = {},
valueOptions = this.getValueOptions()
for (var k in valueOptions) {
if (k === 'widget') options[k] = valueOptions[k]
else options[k] = deepCopy(valueOptions[k])
}
options.fromScript = widget.hash