Mercurial > hg > webaudioevaluationtool
changeset 2260:264a2f6e9b82
Missing surveys in Safari 8.0.4 potential fix
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 20 Apr 2016 12:10:41 +0100 |
parents | 90fd43dee199 |
children | 2bb73e3e4bbb 5bf0555905de |
files | js/specification.js |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/js/specification.js Tue Apr 19 19:08:47 2016 +0200 +++ b/js/specification.js Wed Apr 20 12:10:41 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) {