rem:    MisspelledWord = window.arguments[1];  dialog.ReplaceWordInput.value = MisspelledWord; PreviousReplaceWord = MisspelledWord;  if (MisspelledWord.length > 0) {  dialog.MisspelledWord.setAttribute("value", MisspelledWord);  FillSuggestedList(); } 
context: function Startup(){  if (!InitEditorShell())    return;  // Get the spellChecker shell  spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (!spellChecker) {    dump("SpellChecker not found!!!\n");    window.close();  }  // Create dialog object to store controls for easy access  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    Close();  }  dialog.MisspelledWordLabel = document.getElementById("MisspelledWordLabel");  dialog.MisspelledWord      = document.getElementById("MisspelledWord");  dialog.ReplaceButton       = document.getElementById("Replace");  dialog.IgnoreButton        = document.getElementById("Ignore");  dialog.CloseButton         = document.getElementById("Close");  dialog.ReplaceWordInput    = document.getElementById("ReplaceWord");  dialog.SuggestedList       = document.getElementById("SuggestedList");  dialog.LanguageMenulist    = document.getElementById("LanguageMenulist");  if (!dialog.MisspelledWord ||      !dialog.ReplaceWordInput ||      !dialog.SuggestedList  ||      !dialog.LanguageMenulist )  {    return;  }  // NOTE: We shouldn't have been created if there was no misspelled word    // The first misspelled word is passed as the 2nd extra parameter in window.openDialog()  MisspelledWord = window.arguments[1];  // Initial replace word is the misspelled word;  dialog.ReplaceWordInput.value = MisspelledWord;  PreviousReplaceWord = MisspelledWord;    if (MisspelledWord.length > 0) {    // Put word in the borderless button used to show the misspelled word    dialog.MisspelledWord.setAttribute("value", MisspelledWord);    // Get the list of suggested replacements    FillSuggestedList();  }  if (dialog.LanguageMenulist)  {    // Fill in the language menulist and sync it up    // with the spellchecker's current language.    var curLang;    try {      curLang = spellChecker.GetCurrentDictionary();    } catch(ex) {      curLang = "";    }    InitLanguageMenu(curLang);  }  DoEnabling();  SetTextfieldFocus(dialog.ReplaceWordInput);  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/833fa8a8c3b344da7698fc8a0a4124d4f0be5b66/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js