Mercurial > hg > webaudioevaluationtool
changeset 2252:aa36a634c8a6
Potential fix for #21
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 19 Apr 2016 16:17:28 +0100 |
parents | 6893f2930849 |
children | 2cc2eba252b4 c32b9477cebf |
files | js/specification.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/js/specification.js Tue Apr 19 15:25:59 2016 +0100 +++ b/js/specification.js Tue Apr 19 16:17:28 2016 +0100 @@ -356,11 +356,11 @@ var scaleParent = xml.getElementsByTagName('scales'); if (scaleParent.length == 1) { scaleParent = scaleParent[0]; - for (var i=0; i<scaleParent.children.length; i++) { - var child = scaleParent.children[i]; + var scalelabels = scaleParent.getAllElementsByTagName('scalelabel'); + for (var i=0; i<scalelabels.length; i++) { this.scales.push({ - text: child.textContent, - position: Number(child.getAttribute('position')) + text: scalelabels[i].textContent, + position: Number(scalelabels[i].getAttribute('position')) }); } }