From: Ian Jackson Date: Sun, 12 Jul 2020 19:34:07 +0000 (+0100) Subject: fix redisplay ancillaries X-Git-Tag: otter-0.2.0~1339 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b377f0ad12989c65e73ede789d12f54425e0b23f;p=otter.git fix redisplay ancillaries --- 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; } }