In response to several bugs with the button and popover code, I got rid of the big mess I made there the first time around and rewrote it to be much cleaner and simpler.
Unfortunately, I have not yet fixed any of the user interface bugs:
#38, navbar buttons not working consistently: seems to be caused by jquery missing a click event from the button element. I can't explain this at the moment but since it happens most often with the GPS button in sim mode, it may be the button text/class rendering code redrawing too much of the DOM element in mid-click. so, I'll have to keep looking into this.
#35, selectable gps info: we still redraw the entire popover-contents div each time we get a new gps packet, so this problem will probably be similar to before. The proposed solution was that we switch to a static template inside the div drawn once, and redraw just the changing text by altering span contents. if that really is the solution it should only take minor changes to the view code - the GpsPopoverViewDelegate now has direct access to the .popover-inner $el, rather than the funky event tangle there was before.
Best
Pat