widgets: use JSON object deepcopy in getValue()

This commit is contained in:
jean-emmanuel 2017-01-02 11:25:14 +01:00
parent 1509fb0066
commit 6ae9d03e86

View file

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