code: public void remove(JQMButton button) {
          if (button == null || buttons == null) return;
          int i = buttons.indexOf(button);
          if (i == -1) return;
          Widget liPanel = button.getParent();
          ulPanel.remove(liPanel);
          buttons.remove(i);
      }
docs: Works, but only partially! There is no navbar.refresh() in jqm 1.4.x, so CSS classes are
  not updated properly and navbar doesn't reuse free/available space after removal.