diff core.js @ 401:17a2b99622c0 Dev_main

Synced Specification object. Test create decodes and encodes gain attributes (not implemented in HTML yet)
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 11 Dec 2015 18:03:54 +0000
parents 3fb85ae8fced
children 3590373a64a1
line wrap: on
line diff
--- a/core.js	Fri Dec 11 17:33:14 2015 +0000
+++ b/core.js	Fri Dec 11 18:03:54 2015 +0000
@@ -1548,7 +1548,7 @@
 		}
 		
 		// New check if we need to randomise the test order
-		if (this.randomiseOrder)
+		if (this.randomiseOrder && typeof randomiseOrder === "function")
 		{
 	 		this.audioHolders = randomiseOrder(this.audioHolders);
 	 		for (var i=0; i<this.audioHolders.length; i++)
@@ -1853,7 +1853,7 @@
 				}
 			}
 			
-			if (this.randomiseOrder == true)
+			if (this.randomiseOrder == true && typeof randomiseOrder === "function")
 			{
 				this.audioElements = randomiseOrder(this.audioElements);
 			}