comparison js/core.js @ 2559:c40cda1c2839

#175: Fixed alwaysInclude being ignored
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 19 Jan 2017 16:59:59 +0000
parents bee11d64db84
children d75db08e5801
comparison
equal deleted inserted replaced
2557:03a9a90717ed 2559:c40cda1c2839
1190 // For each selected page, we must get the sub pool 1190 // For each selected page, we must get the sub pool
1191 if (pageInclude[i].poolSize != 0 && pageInclude[i].poolSize != pageInclude[i].audioElements.length) { 1191 if (pageInclude[i].poolSize != 0 && pageInclude[i].poolSize != pageInclude[i].audioElements.length) {
1192 var elemInclude = []; 1192 var elemInclude = [];
1193 var elemPool = []; 1193 var elemPool = [];
1194 for (var elem of pageInclude[i].audioElements) { 1194 for (var elem of pageInclude[i].audioElements) {
1195 if (elem.include || elem.type != "normal") { 1195 if (elem.alwaysInclude || elem.type != "normal") {
1196 elemInclude.push(elem); 1196 elemInclude.push(elem);
1197 } else { 1197 } else {
1198 elemPool.push(elem); 1198 elemPool.push(elem);
1199 } 1199 }
1200 } 1200 }