rem: /*  if (!IsSpellCheckerInstalled()) { dump("Removing spell checker items\n");       var spellingCommand = document.getElementById("cmd_spelling"); if (spellingCommand) spellingCommand.parentNode.removeChild(spellingCommand);  var spellingButton = document.getElementById("spellingButton"); if (spellingButton) spellingButton.parentNode.removeChild(spellingButton);  var spellingMenuItem = document.getElementById("menu_checkspelling"); if (spellingMenuItem) spellingMenuItem.parentNode.removeChild(spellingMenuItem);  var spellingSepItem  = document.getElementById("sep_checkspelling"); if (spellingSepItem) spellingSepItem.parentNode.removeChild(spellingSepItem); } */ 
context: function RemoveInapplicableUIElements(){   // if no find, remove find ui  if (!IsFindInstalled())  {    dump("Hiding find items\n");        var findMenuItem = document.getElementById("menu_find");    if (findMenuItem)      findMenuItem.setAttribute("hidden", "true");    findMenuItem = document.getElementById("menu_findnext");    if (findMenuItem)      findMenuItem.setAttribute("hidden", "true");    	var findSepItem  = document.getElementById("sep_find");      if (findSepItem)        findSepItem.parentNode.removeChild(findSepItem); }   // if no spell checker, remove spell checker ui  if (!IsSpellCheckerInstalled())  {    dump("Hiding spell checker items\n");        var spellingButton = document.getElementById("spellingButton");    if (spellingButton)      spellingButton.setAttribute("hidden", "true");        var spellingMenuItem = document.getElementById("menu_checkspelling");    if (spellingMenuItem)      spellingMenuItem.setAttribute("hidden", "true");    // Spelling item is in its own menu block, so remove it    // (we can't use "hidden" since class="hide-in-IM" CSS rule overrides!)    var spellingSepItem  = document.getElementById("sep_checkspelling");    if (spellingSepItem)      spellingSepItem.parentNode.removeChild(spellingSepItem);  }/*  // if no spell checker, remove spell checker ui  if (!IsSpellCheckerInstalled())  {    dump("Removing spell checker items\n");        // Completely remove UI elements intended for spelling    // This allows HTMLSource to use "hidden" to turn items off/on    //   and also needed because of class="hide-in-IM" CSS rule used by AIM    // First, remove the command node used by both button and menuitem    var spellingCommand = document.getElementById("cmd_spelling");    if (spellingCommand)      spellingCommand.parentNode.removeChild(spellingCommand);        var spellingButton = document.getElementById("spellingButton");    if (spellingButton)      spellingButton.parentNode.removeChild(spellingButton);        var spellingMenuItem = document.getElementById("menu_checkspelling");    if (spellingMenuItem)      spellingMenuItem.parentNode.removeChild(spellingMenuItem);    var spellingSepItem  = document.getElementById("sep_checkspelling");    if (spellingSepItem)      spellingSepItem.parentNode.removeChild(spellingSepItem);  }*/}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a5251f332c87fd9e4ff4b0be42e6023fb7836eb3/editor.js/buggy/editor/ui/composer/content/editor.js