From f689a7d19dc371e496d18b7ef37f5b5e83e636bd Mon Sep 17 00:00:00 2001 From: wangzemei Date: Sat, 12 Oct 2024 17:43:07 +0800 Subject: [PATCH] * [task#129807] remove useless code. --- lib/zin/wg/think3c/js/v1.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/zin/wg/think3c/js/v1.js b/lib/zin/wg/think3c/js/v1.js index 9f69507dd1..241590e501 100644 --- a/lib/zin/wg/think3c/js/v1.js +++ b/lib/zin/wg/think3c/js/v1.js @@ -118,7 +118,6 @@ function calculateCardPosition(region, index) const minW = 140; const positions = calculateCardPositionsOfScale(region); const cards = $(`#runResult .card.in_area-${index}`); - if(index == 4) console.log(positions); if(cards.length <= positions.length) { cards.each((i, card) => { @@ -231,8 +230,7 @@ function calculateCardPositionsOfScale(region, scale = 1) } const groupedData = groupPositions(positions, h); - const result = calcPositionsWithOffset(groupedData); - return result; + return calcPositionsWithOffset(groupedData); } /** @@ -288,6 +286,7 @@ function groupPositions(data, offset) { currentGroup.items.push(...items); } + lastItem = items[items.length - 1]; }