From b377f0ad12989c65e73ede789d12f54425e0b23f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jul 2020 20:34:07 +0100 Subject: [PATCH] fix redisplay ancillaries --- templates/script.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/script.ts b/templates/script.ts index a03e25b0..acb41ae2 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -242,15 +242,14 @@ function ancillary_node(piece: PieceId, stroke: string): SVGGraphicsElement { function redisplay_ancillaries(piece: PieceId, p: PieceInfo) { let href = '#surround'+piece; + console.log('REDISPLAY ANCILLARIES',href); for (let celem = p.pelem.firstElementChild; celem != null; celem = celem.nextElementSibling) { let thref = celem.getAttributeNS(null,"href"); - console.log('UNDISPLAY ANCILLARY',href,thref); if (thref == href) { celem.remove(); - return; } } -- 2.30.2