Make naming convention consistent, and synchronize code

This commit is contained in:
msqr1
2024-01-16 23:25:24 -08:00
parent ab8d869dd9
commit c7b380bece
19 changed files with 203 additions and 152 deletions

View File

@@ -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()
})
}
}