changeset 2880:9bbf97cd736d

Fix for #204
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 26 Jun 2017 11:00:52 +0100
parents 061336f961de
children 2706f3dd82e6
files interfaces/ABX.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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];
     }