mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +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;
|
||||
disconnectedCallback (): void {
|
||||
const id = this.getAttribute('id');
|
||||
const id = this.getAttribute('overlay-id');
|
||||
if (id) SpineWebComponentOverlay.OVERLAY_LIST.delete(id);
|
||||
// window.removeEventListener("scroll", this.scrollHandler);
|
||||
window.removeEventListener("load", this.onLoadCallback);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user