Mercurial > hg > webaudioevaluationtool
changeset 2465:af42b5492f46
Will export the <conditional> nodes
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 23 Jun 2016 13:47:43 +0100 |
parents | 75bd7b5dc522 |
children | 496fde335890 |
files | js/specification.js |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/js/specification.js Thu Jun 23 13:44:17 2016 +0100 +++ b/js/specification.js Thu Jun 23 13:47:43 2016 +0100 @@ -299,6 +299,14 @@ default: break; } + for (var condition of this.conditions) { + var conditionDOM = doc.createElement("conditional"); + conditionDOM.setAttribute("check",condition.check); + conditionDOM.setAttribute("value",condition.value); + conditionDOM.setAttribute("jumpToOnPass",condition.jumpToOnPass); + conditionDOM.setAttribute("jumpToOnFail",condition.jumpToOnFail); + node.appendChild(conditionDOM); + } return node; }; };