 
   # Private: The complete list of menu items.
   #
-  # keystrokesByCommand - An Object where the keys are commands and the values
-  #                       are Arrays containing the keystrokes.
+  # * keystrokesByCommand:
+  #   An Object where the keys are commands and the values are Arrays containing
+  #   the keystrokes.
   #
   # Returns a complete menu configuration Object for use with atom-shell's
   #   native menu API.

  # Note: The update menu item's must match 'Install update' exactly otherwise
  # this function will fail to work.
  #
  # Returns nothing.
  showDownloadUpdateItem: (newVersion, quitAndUpdateCallback) ->
    downloadUpdateItem = _.find @allItems(), (item) -> item.label == 'Install update'
    if downloadUpdateItem


  # Public: Updates the entire menu with the given keybindings.
  #
  # * keystrokesByCommand:
  #   An Object where the keys are commands and the values are Arrays containing
  #   the keystrokes.
  update: (keystrokesByCommand) ->
    template = @getTemplate(keystrokesByCommand)
    @menu = Menu.buildFromTemplate(template)
