Mercurial > hg > webaudioevaluationtool
changeset 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 | 81f17b7bfe82 |
files | js/core.js |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Wed Aug 02 07:39:49 2017 +0100 +++ b/js/core.js Wed Aug 02 07:40:29 2017 +0100 @@ -671,12 +671,13 @@ } function postCheckbox(node) { - if (node.response === null) { - node.response = []; + if (node.response === undefined) { + node.response = Array(node.specification.options.length); } var table = document.createElement("table"); table.className = "popup-option-list"; table.border = "0"; + node.response = []; node.specification.options.forEach(function (option, index) { var tr = document.createElement("tr"); table.appendChild(tr);