From 6b83cc656374880fc8b8766368dc0a17ad3bc215 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 20 Feb 2016 12:42:09 -0500 Subject: [PATCH] Fix Node Clicks Clicking nodes no longer causes the tree to disappear. --- src/services/XmlTreeService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/XmlTreeService.ts b/src/services/XmlTreeService.ts index 343753b..0b4e86f 100644 --- a/src/services/XmlTreeService.ts +++ b/src/services/XmlTreeService.ts @@ -139,6 +139,7 @@ export class XmlTreeService { /* 1px */ } + `; @@ -165,12 +166,12 @@ export class XmlTreeService { if (node.attributes) { for (let i = 0; i < node.attributes.length; i++) { - html += `
  • ${node.attributes.item(i).localName} = '${node.attributes.item(i).value}'
  • `; + html += `
  • ${node.attributes.item(i).localName} = '${node.attributes.item(i).value}'
  • `; } } if (!node.childNodes && node.textContent) { - html += `
  • ${node.textContent}
  • `; + html += `
  • ${node.textContent}
  • `; } if (node.childNodes) {