mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed overlay disconnectedCallback.
This commit is contained in:
parent
71780e6d60
commit
f3612e73cf
@ -1570,7 +1570,7 @@ class SpineWebComponentOverlay extends HTMLElement implements OverlayAttributes,
|
|||||||
|
|
||||||
private running = false;
|
private running = false;
|
||||||
disconnectedCallback (): void {
|
disconnectedCallback (): void {
|
||||||
const id = this.getAttribute('id');
|
const id = this.getAttribute('overlay-id');
|
||||||
if (id) SpineWebComponentOverlay.OVERLAY_LIST.delete(id);
|
if (id) SpineWebComponentOverlay.OVERLAY_LIST.delete(id);
|
||||||
// window.removeEventListener("scroll", this.scrollHandler);
|
// window.removeEventListener("scroll", this.scrollHandler);
|
||||||
window.removeEventListener("load", this.onLoadCallback);
|
window.removeEventListener("load", this.onLoadCallback);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user