Mercurial > hg > webaudioevaluationtool
changeset 2261:2bb73e3e4bbb
Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author | www-data <www-data@sucuk.dcs.qmul.ac.uk> |
---|---|
date | Wed, 20 Apr 2016 12:20:51 +0100 |
parents | 16b74cc55286 (current diff) 264a2f6e9b82 (diff) |
children | 964090c830c5 |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/js/specification.js Tue Apr 19 18:21:03 2016 +0100 +++ b/js/specification.js Wed Apr 20 12:20:51 2016 +0100 @@ -292,11 +292,11 @@ this.location = xml.getAttribute('location'); if (this.location == 'before'){this.location = 'pre';} else if (this.location == 'after'){this.location = 'post';} - for (var i in xml.children) + var children = xml.getAllElementsByTagName('surveyentry'); + for (var i=0; i<children.length; i++) { - if(isNaN(Number(i))==true){break;} var node = new this.OptionNode(this.specification); - node.decode(parent,xml.children[i]); + node.decode(parent,children[i]); this.options.push(node); } if (this.options.length == 0) {