Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2735:9d31ddedae2b
Minor corrections to the processing of conditional elements.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Fri, 21 Apr 2017 11:21:51 +0100 |
parents | f2bb15d5f5c9 |
children | dfc2959fb7c6 2fc62a50d593 |
comparison
equal
deleted
inserted
replaced
2733:f2bb15d5f5c9 | 2735:9d31ddedae2b |
---|---|
594 if (pass) { | 594 if (pass) { |
595 jumpID = condition.jumpToOnPass; | 595 jumpID = condition.jumpToOnPass; |
596 } else { | 596 } else { |
597 jumpID = condition.jumpToOnFail; | 597 jumpID = condition.jumpToOnFail; |
598 } | 598 } |
599 if (jumpID !== undefined) { | 599 if (jumpID !== null) { |
600 jumpToId.call(this, jumpID); | 600 jumpToId.call(this, jumpID); |
601 break; | 601 break; |
602 } | 602 } |
603 } | 603 } |
604 } | 604 } |
826 node.response = node.specification.options[i]; | 826 node.response = node.specification.options[i]; |
827 console.log("Selected: " + node.specification.options[i].name); | 827 console.log("Selected: " + node.specification.options[i].name); |
828 } | 828 } |
829 i++; | 829 i++; |
830 } | 830 } |
831 processConditional.call(this, node, node.response); | 831 processConditional.call(this, node, node.response.name); |
832 return true; | 832 return true; |
833 } | 833 } |
834 | 834 |
835 function processRadioConditional(condition, response) { | 835 function processRadioConditional(condition, response) { |
836 switch (condition.check) { | 836 switch (condition.check) { |