节点被移除时, 同时取消注册到wkitd

master 1.10.4
yutent 2023-08-15 14:36:16 +08:00
parent 0a70cb1b2e
commit 4c3d3eae21
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wkit",
"version": "1.10.3",
"version": "1.10.4",
"type": "module",
"description": "A library for building fast, lightweight web components.",
"main": "dist/index.js",

View File

@ -252,6 +252,9 @@ export class Component extends HTMLElement {
}
}
}
if (window.wkitd && this.$store) {
window.wkitd.deassign(this)
}
}
this.unmounted()
}