rem:  newIndex = -1; } else { for( var i = 0; i < gFontFaceNames.length; i++) 
add: var menuItem = menuItems.item(i); if (menuItem.getAttribute("value") && (menuItem.data.toLowerCase() == state.toLowerCase())) 
context: function onFontFaceChange(){  return; //TODO: REWRITE THIS  var select = document.getElementById("FontFaceSelect");  if (select)  {     // Default selects "Variable Width"    var newIndex = 0;  	var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n");    if ( face == "mixed")    {      // No single type selected      newIndex = -1;    }    else     {      for( var i = 0; i < gFontFaceNames.length; i++)      {        if( gFontFaceNames[i] == face )        {          newIndex = i;          break;        }      }    }    if (select.selectedIndex != newIndex)      select.selectedIndex = newIndex;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/18736fd80cfad5a0e611db473920c6e1a553b72a/editor.js/buggy/editor/ui/composer/content/editor.js