comparison core.js @ 1427:61d11e39bdab

Synced Specification object. Test create decodes and encodes gain attributes (not implemented in HTML yet)
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 11 Dec 2015 18:03:54 +0000
parents 88541651d103
children 261d92ea87e1
comparison
equal deleted inserted replaced
1426:88541651d103 1427:61d11e39bdab
1546 node.decode(this,audioHolders[i]); 1546 node.decode(this,audioHolders[i]);
1547 this.audioHolders.push(node); 1547 this.audioHolders.push(node);
1548 } 1548 }
1549 1549
1550 // New check if we need to randomise the test order 1550 // New check if we need to randomise the test order
1551 if (this.randomiseOrder) 1551 if (this.randomiseOrder && typeof randomiseOrder === "function")
1552 { 1552 {
1553 this.audioHolders = randomiseOrder(this.audioHolders); 1553 this.audioHolders = randomiseOrder(this.audioHolders);
1554 for (var i=0; i<this.audioHolders.length; i++) 1554 for (var i=0; i<this.audioHolders.length; i++)
1555 { 1555 {
1556 this.audioHolders[i].presentedId = i; 1556 this.audioHolders[i].presentedId = i;
1851 } else { 1851 } else {
1852 this.audioElements.push(node); 1852 this.audioElements.push(node);
1853 } 1853 }
1854 } 1854 }
1855 1855
1856 if (this.randomiseOrder == true) 1856 if (this.randomiseOrder == true && typeof randomiseOrder === "function")
1857 { 1857 {
1858 this.audioElements = randomiseOrder(this.audioElements); 1858 this.audioElements = randomiseOrder(this.audioElements);
1859 } 1859 }
1860 1860
1861 var commentQuestionsDOM = xml.getElementsByTagName('CommentQuestion'); 1861 var commentQuestionsDOM = xml.getElementsByTagName('CommentQuestion');