Browse Source

Use delete keyword

offline
decentral1se 4 years ago
parent
commit
12a159c6bb
No known key found for this signature in database GPG Key ID: 92DAD76BD9567B8A
  1. 5
      voicegardens/static/voicegardens.js

5
voicegardens/static/voicegardens.js

@ -1,4 +1,5 @@
"use strict"; // Note(decentral1se): in order to use the `delete` operator
// "use strict";
// //
// Voicegardens front-end Javascript // Voicegardens front-end Javascript
@ -92,7 +93,7 @@ function gardenOfflineLimits() {
for (let i = 0; i < shapes.length; i++) { for (let i = 0; i < shapes.length; i++) {
let shape = shapes[i]; let shape = shapes[i];
shape.hide(); shape.hide();
shape = null; delete shape;
} }
shapes = []; shapes = [];

Loading…
Cancel
Save