scripting: getProp() now correctly returns a copy of the property if it is an object

This commit is contained in:
jean-emmanuel 2024-02-13 14:24:26 +01:00
parent 690add4b38
commit 87ad29fa23
2 changed files with 6 additions and 1 deletions

View file

@ -216,7 +216,7 @@ class ScriptVm extends Vm {
for (var i = widgets.length - 1; i >= 0; i--) {
var v = widgets[i].getProp(prop)
if (v !== undefined) return v
if (v !== undefined) return deepCopy(v)
}