multitimer: use `let`/`const` for global variables (avoid leaking)

master
Rob Pilling 2023-07-17 20:22:28 +01:00
parent 03861111e2
commit ff6158c329
1 changed files with 5 additions and 5 deletions

View File

@ -2,11 +2,11 @@
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();
var R = Bangle.appRect; const R = Bangle.appRect;
var layer; let layer;
var drag; let drag;
var timerInt1 = []; let timerInt1 = [];
var timerInt2 = []; let timerInt2 = [];
function getCurrentTime() { function getCurrentTime() {
let time = new Date(); let time = new Date();