changeset 2676:04cc7a27ae64

Small typos
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 14 Apr 2017 16:25:26 +0100
parents b9efbbe0d829
children a6a0d2b786af
files js/core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Thu Apr 13 11:36:24 2017 +0100
+++ b/js/core.js	Fri Apr 14 16:25:26 2017 +0100
@@ -1187,7 +1187,7 @@
             }
         });
 
-        return picked.concat(randomSubArray(pool, numElements - excluded.length));
+        return picked.concat(randomSubArray(pool, numElements - picked.length));
     }
 
     this.stateMap = [];
@@ -1239,7 +1239,7 @@
             if (page.poolSize > 0 || page.randomiseOrder) {
                 page.randomiseOrder = true;
                 if (page.poolSize == 0) {
-                    page.poolSize = page.randomiseOrder;
+                    page.poolSize = elements.length;
                 }
                 elements = pickSubPool(elements, page.poolSize);
             }