parent
f70f4a54fb
commit
00e81bf2c5
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wkit",
|
"name": "wkit",
|
||||||
"version": "1.12.0",
|
"version": "1.12.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A library for building fast, lightweight web components.",
|
"description": "A library for building fast, lightweight web components.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -295,6 +295,7 @@ export class Component extends HTMLElement {
|
||||||
if (this.keepAlive) {
|
if (this.keepAlive) {
|
||||||
nextTick(_ => this.deactivated())
|
nextTick(_ => this.deactivated())
|
||||||
} else {
|
} else {
|
||||||
|
this[__mounted__] = false
|
||||||
if (!document.body?.contains(this)) {
|
if (!document.body?.contains(this)) {
|
||||||
let $events = this.$events
|
let $events = this.$events
|
||||||
if ($events) {
|
if ($events) {
|
||||||
|
@ -302,6 +303,7 @@ export class Component extends HTMLElement {
|
||||||
for (let it of $events[name]) {
|
for (let it of $events[name]) {
|
||||||
unbind(it.el, name, it.listener, it.options)
|
unbind(it.el, name, it.listener, it.options)
|
||||||
}
|
}
|
||||||
|
delete $events[name]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.removed = true
|
this.removed = true
|
||||||
|
|
Loading…
Reference in New Issue