From a6df06345bad3943ed0f3b9731c7128de1adb3d3 Mon Sep 17 00:00:00 2001 From: Blue Fox Date: Mon, 6 Jun 2022 13:27:21 +0200 Subject: [PATCH] Removed flashlight bug that event listener isn't cleared --- flashlight.trailsense.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashlight.trailsense.js b/flashlight.trailsense.js index d750b64..d98e0a8 100644 --- a/flashlight.trailsense.js +++ b/flashlight.trailsense.js @@ -16,7 +16,7 @@ function drawFace() { } function stop() { - Bangle.removeListener("swipe", callbackFill); + Bangle.removeAllListeners(); } return { drawFace:drawFace, stop:stop };