Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2918:2399d09c8dab
Revert "Fix for #104"
This reverts commit 53939067963348c9dc353ca5c441b3b5015c3d44.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Wed, 02 Aug 2017 07:40:29 +0100 |
parents | 60e5116da71a |
children | 4ae62d4c5c6d beb60cab1f66 |
comparison
equal
deleted
inserted
replaced
2917:60e5116da71a | 2918:2399d09c8dab |
---|---|
669 processConditional.call(this, node, textArea.value); | 669 processConditional.call(this, node, textArea.value); |
670 return true; | 670 return true; |
671 } | 671 } |
672 | 672 |
673 function postCheckbox(node) { | 673 function postCheckbox(node) { |
674 if (node.response === null) { | 674 if (node.response === undefined) { |
675 node.response = []; | 675 node.response = Array(node.specification.options.length); |
676 } | 676 } |
677 var table = document.createElement("table"); | 677 var table = document.createElement("table"); |
678 table.className = "popup-option-list"; | 678 table.className = "popup-option-list"; |
679 table.border = "0"; | 679 table.border = "0"; |
680 node.response = []; | |
680 node.specification.options.forEach(function (option, index) { | 681 node.specification.options.forEach(function (option, index) { |
681 var tr = document.createElement("tr"); | 682 var tr = document.createElement("tr"); |
682 table.appendChild(tr); | 683 table.appendChild(tr); |
683 var td = document.createElement("td"); | 684 var td = document.createElement("td"); |
684 tr.appendChild(td); | 685 tr.appendChild(td); |