scripting: getProp() now correctly returns a copy of the property if it is an object
This commit is contained in:
parent
690add4b38
commit
87ad29fa23
2 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.25.8
|
||||
|
||||
- bug fixes
|
||||
- scripting: `getProp()` now correctly returns a copy of the property if it is an object
|
||||
|
||||
## 1.25.7
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue