From b7c098c260ba35bca70cee6501e594efae3e6dd6 Mon Sep 17 00:00:00 2001 From: David Back Date: Thu, 27 Sep 2018 17:02:54 -0700 Subject: [PATCH] remove unneeded variable --- scripts/system/html/js/entityList.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/system/html/js/entityList.js b/scripts/system/html/js/entityList.js index 3825cf9fe3..3fb155cbca 100644 --- a/scripts/system/html/js/entityList.js +++ b/scripts/system/html/js/entityList.js @@ -209,16 +209,15 @@ function loaded() { } } if (previousItemFound !== -1 && clickedItemFound !== -1) { - let betweenItems = []; + let selection = []; let toItem = Math.max(previousItemFound, clickedItemFound); for (let i = Math.min(previousItemFound, clickedItemFound); i <= toItem; i++) { - betweenItems.push(visibleEntities[i].id); + selection.push(visibleEntities[i].id); } if (previousItemFound > clickedItemFound) { // always make sure that we add the items in the right order - betweenItems.reverse(); + selection.reverse(); } - selection = betweenItems; } } else if (!clickEvent.ctrlKey && !clickEvent.shiftKey && selectedEntities.length === 1) { // if reselecting the same entity then deselect it