comparison ape.js @ 805:08a3b497d6c4

Further Bug #1500 fix. Ensured checks are correctly binded by APE.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 18 Dec 2015 17:54:47 +0000
parents 0f7b9ac48364
children 8540d153caec
comparison
equal deleted inserted replaced
804:0f7b9ac48364 805:08a3b497d6c4
18 var testContent = document.createElement('div'); 18 var testContent = document.createElement('div');
19 19
20 testContent.id = 'testContent'; 20 testContent.id = 'testContent';
21 21
22 // Bindings for interfaceContext 22 // Bindings for interfaceContext
23 Interface.prototype.checkAllPlayed = function() 23 interfaceContext.checkAllPlayed = function()
24 { 24 {
25 hasBeenPlayed = audioEngineContext.checkAllPlayed(); 25 hasBeenPlayed = audioEngineContext.checkAllPlayed();
26 if (hasBeenPlayed.length > 0) // if a fragment has not been played yet 26 if (hasBeenPlayed.length > 0) // if a fragment has not been played yet
27 { 27 {
28 str = ""; 28 str = "";
42 return false; 42 return false;
43 } 43 }
44 return true; 44 return true;
45 }; 45 };
46 46
47 Interface.prototype.checkAllMoved = function() { 47 interfaceContext.checkAllMoved = function() {
48 var state = true; 48 var state = true;
49 var str = 'You have not moved the following sliders. '; 49 var str = 'You have not moved the following sliders. ';
50 for (var i=0; i<this.interfaceSliders.length; i++) 50 for (var i=0; i<this.interfaceSliders.length; i++)
51 { 51 {
52 var interfaceTID = []; 52 var interfaceTID = [];