# HG changeset patch # User Nicholas Jillings # Date 1484841109 0 # Node ID 781187c743cc5d614c4ba982ef4bc1a3ab684c6e # Parent 83ae42eab9609b47504f9aac6faecea4cd9af05b #9 Clear node on each postNode event diff -r 83ae42eab960 -r 781187c743cc js/core.js --- a/js/core.js Thu Jan 19 15:50:36 2017 +0000 +++ b/js/core.js Thu Jan 19 15:51:49 2017 +0000 @@ -638,6 +638,7 @@ converter = new showdown.Converter(), p = new DOMParser(); this.popupResponse.innerHTML = ""; + this.popupTitle.innerHTML = ""; this.popupTitle.appendChild(p.parseFromString(converter.makeHtml(node.specification.statement), "text/html").getElementsByTagName("body")[0].firstElementChild); if (node.specification.type == 'question') { var textArea = document.createElement('textarea');