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; }