B2G/gecko/browser/components/places/content/editBookmarkOverlay.js
/**
   * Appends a menu-item representing a bookmarks folder to a menu-popup.
   * @param aMenupopup
   *        The popup to which the menu-item should be added.
   * @param aFolderId
   *        The identifier of the bookmarks folder.
   * @return the new menu item.
   */
Appends a menu-item representing a bookmarks folder to a menu-popup.
@param aMenupopup
The popup to which the menu-item should be added.
@param aFolderId
The identifier of the bookmarks folder.
@return the new menu item.
Appends a menu - item representing a bookmarks folder to a menu - popup . @param aMenupopup The popup to which the menu - item should be added . @param aFolderId The identifier of the bookmarks folder . @return the new menu item .
function EIO__appendFolderItemToMenuList(aMenupopup, aFolderId) {
    this._element("foldersSeparator").hidden = false;
    var folderMenuItem = document.createElement("menuitem");
    var folderTitle = PlacesUtils.bookmarks.getItemTitle(aFolderId)
    folderMenuItem.folderId = aFolderId;
    folderMenuItem.setAttribute("label", folderTitle);
    folderMenuItem.className = "menuitem-iconic folder-icon";
    aMenupopup.appendChild(folderMenuItem);
    return folderMenuItem;
  }
function EIO__appendFolderItemToMenuList ( aMenupopup , aFolderId ) { this . _element ( "foldersSeparator" ) . hidden = false ; var folderMenuItem = document . createElement ( "menuitem" ) ; var folderTitle = PlacesUtils . bookmarks . getItemTitle ( aFolderId ) folderMenuItem . folderId = aFolderId ; folderMenuItem . setAttribute ( "label" , folderTitle ) ; folderMenuItem . className = "menuitem-iconic folder-icon" ; aMenupopup . appendChild ( folderMenuItem ) ; return folderMenuItem ; }
Appends a menu-item representing a bookmarks folder to a menu-popup.
Appends a menu - item representing a bookmarks folder to a menu - popup .
// First make sure the folders-separator is visible