Make naming convention consistent, and synchronize code
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
class SpkModel extends EventTarget{
|
||||
constructor(url, storepath, id) {
|
||||
super()
|
||||
this.obj = new Module.__SpkModel__(url, storepath, id, __GenericObj__.objects.length)
|
||||
__GenericObj__.objects.push(this)
|
||||
this.obj = (async () => {
|
||||
return new Module.__spkModel__(url, storepath, id, __genericObj__.objects.length)
|
||||
})()
|
||||
__genericObj__.objects.push(this)
|
||||
}
|
||||
delete() {
|
||||
this.obj.delete()
|
||||
this.obj.then(() => {
|
||||
this.obj.delete()
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user