Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 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 | 1647bb807186 |
comparison
equal
deleted
inserted
replaced
2464:75bd7b5dc522 | 2465:af42b5492f46 |
---|---|
297 if (this.boxsize != undefined) {node.setAttribute("boxsize",this.boxsize);} | 297 if (this.boxsize != undefined) {node.setAttribute("boxsize",this.boxsize);} |
298 if (this.mandatory != undefined) {node.setAttribute("mandatory",this.mandatory);} | 298 if (this.mandatory != undefined) {node.setAttribute("mandatory",this.mandatory);} |
299 default: | 299 default: |
300 break; | 300 break; |
301 } | 301 } |
302 for (var condition of this.conditions) { | |
303 var conditionDOM = doc.createElement("conditional"); | |
304 conditionDOM.setAttribute("check",condition.check); | |
305 conditionDOM.setAttribute("value",condition.value); | |
306 conditionDOM.setAttribute("jumpToOnPass",condition.jumpToOnPass); | |
307 conditionDOM.setAttribute("jumpToOnFail",condition.jumpToOnFail); | |
308 node.appendChild(conditionDOM); | |
309 } | |
302 return node; | 310 return node; |
303 }; | 311 }; |
304 }; | 312 }; |
305 this.decode = function(parent,xml) { | 313 this.decode = function(parent,xml) { |
306 this.parent = parent; | 314 this.parent = parent; |