better cleanup for html drawer in destroy

This commit is contained in:
Tom 2024-02-12 09:32:17 -05:00
parent 8967e2bb03
commit 6e4914ada3

View File

@ -126,7 +126,7 @@ class HTMLDrawer extends OpenSeadragon.DrawerBase{
* Destroy the drawer (unload current loaded tiles)
*/
destroy() {
this.canvas.innerHTML = "";
this.container.removeChild(this.canvas);
}
/**