Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 3103:d79b9939b19e
Fix for no <calibration>
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 18 Jan 2018 17:06:52 +0000 |
parents | 998e05c5769a |
children | 3dcdada1058f |
comparison
equal
deleted
inserted
replaced
3102:972b55d81c1b | 3103:d79b9939b19e |
---|---|
129 projectAttr = processAttribute(projectAttr, attributes[i]); | 129 projectAttr = processAttribute(projectAttr, attributes[i]); |
130 if (projectAttr !== null) { | 130 if (projectAttr !== null) { |
131 this[attributeName] = projectAttr; | 131 this[attributeName] = projectAttr; |
132 } | 132 } |
133 } | 133 } |
134 | 134 if (projectXML.getElementsByTagName('calibration').length > 0) { |
135 this.calibration.decode(this, projectXML.getElementsByTagName('calibration')[0]); | 135 this.calibration.decode(this, projectXML.getElementsByTagName('calibration')[0]); |
136 } | |
136 | 137 |
137 var exitTextNode = setupNode.getElementsByTagName('exitText'); | 138 var exitTextNode = setupNode.getElementsByTagName('exitText'); |
138 if (exitTextNode.length == 1) { | 139 if (exitTextNode.length == 1) { |
139 this.exitText = exitTextNode[0].textContent; | 140 this.exitText = exitTextNode[0].textContent; |
140 } | 141 } |