# HG changeset patch # User Nicholas Jillings # Date 1489256099 0 # Node ID 1ccc083552d5b70c5678dc0c2ecbac96336cf120 # Parent 31af72ea5e614bec3b2f11691e4790b590507fae Minor fixed for AB diff -r 31af72ea5e61 -r 1ccc083552d5 interfaces/AB.js --- a/interfaces/AB.js Sat Mar 11 11:43:57 2017 +0000 +++ b/interfaces/AB.js Sat Mar 11 18:14:59 2017 +0000 @@ -275,9 +275,9 @@ }; this.playback.setAttribute("playstate", "ready"); this.playbackClicked = function () { - if (event.currentTarget.getAttribute("playstate") == "ready") { + if (this.playback.getAttribute("playstate") == "ready") { audioEngineContext.play(this.id); - } else if (event.currentTarget.getAttribute("playstate") == "playing") { + } else if (this.playback.getAttribute("playstate") == "playing") { audioEngineContext.stop(); } diff -r 31af72ea5e61 -r 1ccc083552d5 js/core.js --- a/js/core.js Sat Mar 11 11:43:57 2017 +0000 +++ b/js/core.js Sat Mar 11 18:14:59 2017 +0000 @@ -3629,10 +3629,10 @@ this.XMLDOM.setAttribute('ref', specification.id); this.XMLDOM.setAttribute('presentedId', specification.presentedId); this.XMLDOM.setAttribute("state", this.state); - if (specification.preTest !== null) { + if (specification.preTest !== undefined) { this.preTest = new this.parent.surveyNode(this.parent, this.XMLDOM, this.specification.preTest); } - if (specification.postTest !== null) { + if (specification.postTest !== undefined) { this.postTest = new this.parent.surveyNode(this.parent, this.XMLDOM, this.specification.postTest); }