comparison interfaces/ABX.js @ 2835:ba5fa3d30123

Urgent hot_fix. Fix bug in ABX causing all value markers to be false.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 27 Jun 2017 21:11:00 +0100
parents 64a5603831e2
children cd1cd3358544
comparison
equal deleted inserted replaced
2833:47f187d4fc71 2835:ba5fa3d30123
236 } 236 }
237 interfaceContext.comparator.selected = this.id; 237 interfaceContext.comparator.selected = this.id;
238 $(".comparator-selector").removeClass('selected'); 238 $(".comparator-selector").removeClass('selected');
239 $(this.selector).addClass('selected'); 239 $(this.selector).addClass('selected');
240 interfaceContext.comparator.pair.forEach(function (obj) { 240 interfaceContext.comparator.pair.forEach(function (obj) {
241 obj.value = 1.0 * obj === this; 241 obj.value = 1.0 * (obj === this);
242 obj.parent.metric.moved(time, obj.value); 242 obj.parent.metric.moved(time, obj.value);
243 }); 243 }, this);
244 console.log("Selected " + this.id + ' (' + time + ')'); 244 console.log("Selected " + this.id + ' (' + time + ')');
245 }; 245 };
246 this.playback.setAttribute("playstate", "ready"); 246 this.playback.setAttribute("playstate", "ready");
247 this.playbackClicked = function (event) { 247 this.playbackClicked = function (event) {
248 if (this.playback.getAttribute("playstate") == "ready") { 248 if (this.playback.getAttribute("playstate") == "ready") {