widgets: use JSON object deepcopy in getValue()
This commit is contained in:
parent
1509fb0066
commit
6ae9d03e86
1 changed files with 2 additions and 11 deletions
|
|
@ -48,19 +48,10 @@ module.exports = class {
|
|||
|
||||
getValue() {
|
||||
|
||||
|
||||
if (typeof this.value == 'object') {
|
||||
|
||||
return (()=>{
|
||||
|
||||
var a = []
|
||||
|
||||
for (i in this.value) {
|
||||
a.push(this.value[i])
|
||||
}
|
||||
|
||||
return a
|
||||
|
||||
})()
|
||||
return JSON.parse(JSON.stringify(this.value))
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue