BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

alarm: fix uncaught error if no scroller (Bangle 1)

Open thyttan opened this issue 4 months ago • 0 comments

This PR seems to fix the following. Tested in the Bangle.js 1 emulator on the Web IDE.

Just tried on emulated Bangle.js 1 and got:

Uncaught Error: Can't read property 'scroll' of undefined
 at line 20 col 1070 in alarm.app.js
...mMenu,10,e,index,undefined,scroller.scroll,group)
                                      ^
in function "onchange" called from line 3 col 106
...onchange)a.onchange(a.value);Bangle.touchHandler==u&&d.draw(...
                              ^
in function "select" called from line 1 col 22
a?d.move(a):d.select()
                     ^
in function "d" called from line 1 col 3
d()
  ^
in function called from system
> 

Looking at the git blame it seems to have been around since 2023-11-14.

Originally posted by @thyttan in https://github.com/espruino/BangleApps/issues/3604#issuecomment-2397608781

thyttan avatar Oct 07 '24 18:10 thyttan