rem:  var itemString; if (accessKey > 9) {   itemString = "   "+title; if (title.length < 1)  itemString = "    "+url; } else { itemString = accessKey+" "+title; if (title.length < 1)  itemString = accessKey+" "+url; menuItem.setAttribute("accesskey", accessKey); } 
add: var accessKey; if (menuIndex <= 9) accessKey = String(menuIndex); else if (menuIndex == 10) accessKey = "0"; else accessKey = " ";  var itemString = accessKey+" "; if (title) itemString += title; else itemString += url; 
context: function AppendRecentMenuitem(accessKey, menupopup, title, url){  if (menupopup)  {    var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");    if (menuItem)    {      // Build the menuitem using the title (or url) and accesskey      var itemString;      if (accessKey > 9)       {        // Access key is two digits so spaces are put in where the access key        // would go and the title is added.        itemString = "   "+title;  // Set title and spaces (no access key)        if (title.length < 1)          // There is no title to display on the menuitem so use the URL instead          itemString = "    "+url;	  } else {        itemString = accessKey+" "+title;  // Set the menuitem to use the title and accesskey        if (title.length < 1)          // There is no title to display on the menuitem so use the URL instead          itemString = accessKey+" "+url;        menuItem.setAttribute("accesskey", accessKey);      }      menuItem.setAttribute("value", itemString);      menuItem.setAttribute("data", url);      menuItem.setAttribute("oncommand", "EditorOpenUrl(getAttribute('data'))");      menupopup.appendChild(menuItem);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/6cfd93dbab05e8e883433e7fb5b3c9252f33bcf5/editor.js/buggy/editor/ui/composer/content/editor.js