changeset 2836:e61531ce764f

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Tue, 27 Jun 2017 21:22:15 +0100
parents 9675c2cf79b2 (current diff) ba5fa3d30123 (diff)
children b2f52634c830
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ABX.js	Mon Jun 26 12:21:06 2017 +0100
+++ b/interfaces/ABX.js	Tue Jun 27 21:22:15 2017 +0100
@@ -238,9 +238,9 @@
             $(".comparator-selector").removeClass('selected');
             $(this.selector).addClass('selected');
             interfaceContext.comparator.pair.forEach(function (obj) {
-                obj.value = 1.0 * obj === this;
+                obj.value = 1.0 * (obj === this);
                 obj.parent.metric.moved(time, obj.value);
-            });
+            }, this);
             console.log("Selected " + this.id + ' (' + time + ')');
         };
         this.playback.setAttribute("playstate", "ready");