From b5337717e74aa9ef26529f2b3b2b18fb011906c4 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 6 Oct 2021 20:14:33 +0100 Subject: [PATCH] fix widclk regression --- apps/widclk/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/widclk/widget.js b/apps/widclk/widget.js index da3f60ce8..9e035ca9a 100644 --- a/apps/widclk/widget.js +++ b/apps/widclk/widget.js @@ -8,7 +8,7 @@ if (!Bangle.CLOCK) WIDGETS["wdclk"]={area:"tl",width:52/* g.stringWidth("00:00") var time = require("locale").time(new Date(),1); g.drawString(time, this.x, this.y+3, true); // 5 * 6*2 = 60 // queue draw in one minute - if (drawTimeout) clearTimeout(drawTimeout); + if (this.drawTimeout) clearTimeout(this.drawTimeout); this.drawTimeout = setTimeout(()=>{ this.drawTimeout = undefined; this.draw();