diff --git a/apps/setuichange/boot.js b/apps/setuichange/boot.js index 446936bd41a..dd541e72b2b 100644 --- a/apps/setuichange/boot.js +++ b/apps/setuichange/boot.js @@ -103,11 +103,6 @@ Bangle.setUI = (function(mode, cb) { Bangle.swipeHandler = options.swipe; Bangle.on("swipe", Bangle.swipeHandler); } - if (options.btn || options.btnRelease) { - // Make sure we only add the custom btn handlers. TODO: Deliberate on whether this is the right approach or not. - Bangle.btnWatches.forEach(clearWatch); - Bangle.btnWatches = []; - } if (options.btn) Bangle.btnWatches.push(setWatch(options.btn.bind(options), BTN1, {repeat:1,edge:"rising"})) if (options.btnRelease) Bangle.btnWatches.push(setWatch(options.btnRelease.bind(options), BTN1, {repeat:1,edge:"falling"})) if (options.remove) // handler for removing the UI (intervals/etc)