changeset 2833:47f187d4fc71

Fix for #210
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 26 Jun 2017 11:58:59 +0100
parents 740f273226c3
children 9675c2cf79b2 ba5fa3d30123 033027759cf7
files js/core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Mon Jun 26 11:55:43 2017 +0100
+++ b/js/core.js	Mon Jun 26 11:58:59 2017 +0100
@@ -1198,9 +1198,9 @@
 
         // First extract those excluded from picking process
         var picked = [];
-        pool.forEach(function (e) {
+        pool.forEach(function (e, i) {
             if (e.alwaysInclude) {
-                picked.push(e);
+                picked.push(pool.splice(i, 1)[0]);
             }
         });