You are reading a single comment by @allObjects and its replies. Click here to read the full conversation.
  • @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;
    
About

Avatar for allObjects @allObjects started