Merge branch 'master' into develop
This commit is contained in:
commit
16686dd281
3 changed files with 20 additions and 5 deletions
13
src/Utils.ts
13
src/Utils.ts
|
@ -331,11 +331,16 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
configurable: true,
|
||||
get: () => {
|
||||
delete object[name]
|
||||
object[name] = init()
|
||||
if (whenDone) {
|
||||
whenDone()
|
||||
try{
|
||||
object[name] = init()
|
||||
if (whenDone) {
|
||||
whenDone()
|
||||
}
|
||||
return object[name]
|
||||
}catch (e) {
|
||||
console.error("Error while calculating a lazy property", e)
|
||||
return undefined
|
||||
}
|
||||
return object[name]
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue