From 6e4914ada33c697242d765bb0c8fb21b0049f22c Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 12 Feb 2024 09:32:17 -0500 Subject: [PATCH] better cleanup for html drawer in destroy --- src/htmldrawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmldrawer.js b/src/htmldrawer.js index 3d04f444..80f851e4 100644 --- a/src/htmldrawer.js +++ b/src/htmldrawer.js @@ -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); } /**