Mercurial > hg > webaudioevaluationtool
changeset 2972:1ba905b737aa
#262 SessionKey refactoring issues
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 12 Jan 2018 13:22:32 +0000 |
parents | d962cce75063 |
children | 2d39ee05a5dc |
files | js/core.js |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Fri Jan 12 13:20:06 2018 +0000 +++ b/js/core.js Fri Jan 12 13:22:32 2018 +0000 @@ -3757,9 +3757,8 @@ if (xml.getElementsByTagName("state").length > 0) { if (xml.getElementsByTagName("state")[0].textContent == "OK") { sessionKey = xml.getAllElementsByTagName("key")[0].textContent; - this.parent.root.setAttribute("key", this.key); - this.parent.root.setAttribute("state", "empty"); - this.update(); + parent.root.setAttribute("key", sessionKey); + parent.root.setAttribute("state", "empty"); return (true); } else if (xml.getElementsByTagName("state")[0].textContent == "ERROR") { sessionKey = null;