code: function renderDelete() {
          return $("<div id='recent-folder-delete' class='trash-icon'>&times;</div>")
              .mouseup(function (e) {
                  // Don't let the click bubble upward.
                  e.stopPropagation();
  
                  // Remove the project from the preferences.
                  var recentProjects = getRecentProjects(),
                      index = recentProjects.indexOf($(this).parent().data("path")),
                      newProjects = [],
                      i;
                  for (i = 0; i < recentProjects.length; i++) {
                      if (i !== index) {
                          newProjects.push(recentProjects[i]);
                      }
                  }
                  PreferencesManager.setViewState("recentProjects", newProjects);
                  $(this).closest("li").remove();
                  checkHovers(e.pageX, e.pageY);
  
                  if (newProjects.length === 1) {
                      $dropdown.find(".divider").remove();
                  }
              });
      }
docs: Create the "delete" button that shows up when you hover over a project.