chiark / gitweb /
fix redisplay ancillaries
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 19:34:07 +0000 (20:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 19:34:07 +0000 (20:34 +0100)
templates/script.ts

index a03e25b063c205d59f5a92a23f91672e208b22b6..acb41ae2a4a32842fe4a99d9f11177bfa9d6de4a 100644 (file)
@@ -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;
     }
   }