Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2827:cf1a3a529177
#209 minor typos
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 09 May 2017 15:42:59 +0100 |
parents | 28a5504db337 |
children | 47f187d4fc71 97a52e326464 |
comparison
equal
deleted
inserted
replaced
2826:28a5504db337 | 2827:cf1a3a529177 |
---|---|
3340 return false; | 3340 return false; |
3341 } | 3341 } |
3342 return true; | 3342 return true; |
3343 }); | 3343 }); |
3344 if (failedObjects.length === 0) { | 3344 if (failedObjects.length === 0) { |
3345 return false; | 3345 return true; |
3346 } | 3346 } |
3347 var failedString = []; | 3347 var failedString = []; |
3348 failedObjects.forEach(function (a) { | 3348 failedObjects.forEach(function (a) { |
3349 failedString.push(a.interfaceDOM.getPresentedId()); | 3349 failedString.push(a.interfaceDOM.getPresentedId()); |
3350 }); | 3350 }); |
3351 var str = "You have not played fragments " + failedString.join(", ") + " enough. Please keep listening"; | 3351 var str = "You have not played fragments " + failedString.join(", ") + " enough. Please keep listening"; |
3352 interfaceContext.lightbox.post("Message", str); | 3352 interfaceContext.lightbox.post("Message", str); |
3353 this.storeErrorNode(str); | 3353 this.storeErrorNode(str); |
3354 return true; | 3354 return false; |
3355 }; | 3355 }; |
3356 | 3356 |
3357 | 3357 |
3358 this.storeErrorNode = function (errorMessage) { | 3358 this.storeErrorNode = function (errorMessage) { |
3359 var time = audioEngineContext.timer.getTestTime(); | 3359 var time = audioEngineContext.timer.getTestTime(); |