From e746641fba01ea34a2870b0b6a436611bfcad36f Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 1 Jun 2021 17:57:30 +0200 Subject: [PATCH] Clean up afterwards --- voicegardens/static/voicegardens.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index facfe8b..3369af6 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -92,11 +92,10 @@ function gardenOfflineLimits() { for (let i = 0; i < shapes.length; i++) { let shape = shapes[i]; shape.hide(); + shape = null; } - while (shapes.length > 0) { - shapes.pop(); - } + shapes = []; return true; }