comparison js/core.js @ 2748:4b004eb32738

Minor fix for always randomised pools in reverse order
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 25 Apr 2017 09:52:05 +0100
parents dfc2959fb7c6
children 74b0a1be28a7
comparison
equal deleted inserted replaced
2747:81a0a0fbfc69 2748:4b004eb32738
1222 } 1222 }
1223 1223
1224 // Now get the order of pages 1224 // Now get the order of pages
1225 var fixed = []; 1225 var fixed = [];
1226 pagePool.forEach(function (page) { 1226 pagePool.forEach(function (page) {
1227 if (page.position !== null) { 1227 if (page.position !== undefined) {
1228 fixed.push(page); 1228 fixed.push(page);
1229 var i = pagePool.indexOf(page); 1229 var i = pagePool.indexOf(page);
1230 pagePool.splice(i, 1); 1230 pagePool.splice(i, 1);
1231 } 1231 }
1232 }); 1232 });