rem:   children[0].setAttribute("checked", !fontWasFound); 
context: function initFontFaceMenu(menuPopup){  initLocalFontFaceMenu(menuPopup);  if (menuPopup)  {    var children = menuPopup.childNodes;    if (!children) return;    var firstHas = { value: false };    var anyHas = { value: false };    var allHas = { value: false };    // we need to set or clear the checkmark for each menu item since the selection    // may be in a new location from where it was when the menu was previously opened    // Fixed width (second menu item) is special case: old TT ("teletype") attribute    EditorGetTextProperty("tt", "", "", firstHas, anyHas, allHas);    children[1].setAttribute("checked", allHas.value);    var fontWasFound = anyHas.value;    // Skip over default, TT, and separator    for (var i = 3; i < children.length; i++)    {      var menuItem = children[i];      var faceType = menuItem.getAttribute("value");      if (faceType)      {        EditorGetTextProperty("font", "face", faceType, firstHas, anyHas, allHas);        // Remember if ANY part of the selection has the face        fontWasFound |= anyHas.value;        // Check the menuitem only if all of selection has the face        if (allHas.value)        {          menuItem.setAttribute("checked", "true");          break;        }        // in case none match, make sure we've cleared the checkmark        menuItem.removeAttribute("checked");      }    }    // Check the default item if no other item was checked    // note that no item is checked in the case of "mixed" selection    children[0].setAttribute("checked", !fontWasFound);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/769b846b521da1bcb42aaca0c97b018996d86c09/editor.js/clean/editor/ui/composer/content/editor.js