@Gordon, thanks for pointing it out. It can really be tricky with minification. It was fun to think thru this small piece of code...
Btw, these two lines
options.selected = (dir+options.selected)%menuItems.length;
if (options.selected<0) options.selected += menuItems.length;
can be put into one, since % takes care of the business:
options.selected = (dir+options.selected+menuItems.length)%menuItems.length;
© Espruino, powered by microcosm.
Report a problem