Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 3136:3dcdada1058f
Fix issue with test scale range not being set.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Fri, 29 Mar 2019 16:03:06 +0000 |
parents | d79b9939b19e |
children |
comparison
equal
deleted
inserted
replaced
3135:afc32cd44b22 | 3136:3dcdada1058f |
---|---|
583 titleNode.textContent = this.title; | 583 titleNode.textContent = this.title; |
584 node.appendChild(titleNode); | 584 node.appendChild(titleNode); |
585 } | 585 } |
586 this.options.forEach(function (option) { | 586 this.options.forEach(function (option) { |
587 var child = doc.createElement("interfaceoption"); | 587 var child = doc.createElement("interfaceoption"); |
588 child.setAttribute("type", option.type); | 588 Object.keys(option).forEach(function(key) { |
589 child.setAttribute("name", option.name); | 589 child.setAttribute(key, option[key]); |
590 }); | |
590 if (option.type == "check" && option.errorMessage !== undefined) { | 591 if (option.type == "check" && option.errorMessage !== undefined) { |
591 var errorMessage = doc.createElement("errormessage"); | 592 var errorMessage = doc.createElement("errormessage"); |
592 errorMessage.textContent = option.errorMessage; | 593 errorMessage.textContent = option.errorMessage; |
593 child.appendChild(errorMessage); | 594 child.appendChild(errorMessage); |
594 } | 595 } |