static Update(Arr) {
static Update(Arr) {
let prop = Properties.GetContext().Get(SAVE_PROP_NAME)
let arr = [...Arr].map(i => {
let keys = Object.keys(i)
let obj = []
for (let j = 0; j < keys.length; j++) {
let iter = i[keys[j]]
if (typeof iter == 'function') {
obj[iter] = [iter.name, iter.toString()]
break
}
}
return i = Object.assign(obj, i)
})
prop.Value = JSON.stringify(arr)
}