changeset 2889:cd1cd3358544

Merge branch 'vnext' into Dev_main
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 27 Jun 2017 21:11:29 +0100
parents cedaf7ee1b81 (current diff) 446f344eaa50 (diff)
children 29c081e03e6b
files interfaces/ABX.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ABX.js	Tue Jun 27 20:52:07 2017 +0100
+++ b/interfaces/ABX.js	Tue Jun 27 21:11:29 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");