Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2698:0562dcdfd5eb
Minor fixes to APE and core
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 13 Mar 2017 11:08:51 +0000 |
parents | 67db38680bc0 |
children | 87d9f785f1ec |
comparison
equal
deleted
inserted
replaced
2697:67db38680bc0 | 2698:0562dcdfd5eb |
---|---|
1376 break; | 1376 break; |
1377 case 'test': | 1377 case 'test': |
1378 this.currentStatePosition = 'post'; | 1378 this.currentStatePosition = 'post'; |
1379 // Save the data | 1379 // Save the data |
1380 this.testPageCompleted(); | 1380 this.testPageCompleted(); |
1381 if (this.currentStateMap.postTest === null) { | 1381 if (this.currentStateMap.postTest === undefined) { |
1382 this.advanceState(); | 1382 this.advanceState(); |
1383 return; | 1383 return; |
1384 } else { | 1384 } else { |
1385 popup.initState(this.currentStateMap.postTest, storage.testPages[this.stateIndex].postTest); | 1385 popup.initState(this.currentStateMap.postTest, storage.testPages[this.stateIndex].postTest); |
1386 } | 1386 } |
3159 return true; | 3159 return true; |
3160 }; | 3160 }; |
3161 | 3161 |
3162 this.checkHiddenReference = function () { | 3162 this.checkHiddenReference = function () { |
3163 var references = audioEngineContext.audioObjects.filter(function (ao) { | 3163 var references = audioEngineContext.audioObjects.filter(function (ao) { |
3164 return ao.specification.type === "references"; | 3164 return ao.specification.type === "reference"; |
3165 }); | 3165 }); |
3166 var state = references.some(function (ao) { | 3166 var state = references.some(function (ao) { |
3167 return (ao.interfaceDOM.getValue() < (ao.specification.marker / 100) && ao.specification.marker > 0); | 3167 return (ao.interfaceDOM.getValue() < (ao.specification.marker / 100) && ao.specification.marker > 0); |
3168 }); | 3168 }); |
3169 if (state) { | 3169 if (state) { |