# HG changeset patch # User Nicholas Jillings # Date 1498471252 -3600 # Node ID 9bbf97cd736d089db65684e82a128ca544412543 # Parent 061336f961de3d8537d7ac889c3284d1f4b2d060 Fix for #204 diff -r 061336f961de -r 9bbf97cd736d interfaces/ABX.js --- a/interfaces/ABX.js Mon Jun 19 13:49:15 2017 +0100 +++ b/interfaces/ABX.js Mon Jun 26 11:00:52 2017 +0100 @@ -14,7 +14,7 @@ interfaceContext.insertPoint.innerHTML = ""; // Clear the current schema // Custom comparator Object - Interface.prototype.comparator = null; + interfaceContext.comparator = null; // The injection point into the HTML page interfaceContext.insertPoint = document.getElementById("topLevelBody"); @@ -375,7 +375,7 @@ this.boxHolders.appendChild(node.box); }, this); var elementId = Math.floor(Math.random() * 2); //Randomly pick A or B to be X - var element = new page.audioElementNode(specification); + var element = page.addAudioElement(); for (var atr in page.audioElements[elementId]) { element[atr] = page.audioElements[elementId][atr]; }