rem: if (misspelledWord != "") { dump("First misspelled word = "+misspelledWord+"\n"); 
add: if (MisspelledWord.length > 0) { dump("First misspelled word = "+MisspelledWord+"\n"); 
context: function Startup(){  if (!InitEditorShell())    return;  dump("EditorShell found for Spell Checker dialog\n");  // Get the spellChecker shell  spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (!spellChecker) {    dump("SpellChecker not found!!!\n");    window.close();  }  // Save as a property of the window so it can be used by child dialogs  window.spellChecker = spellChecker;  // Create dialog object to store controls for easy access  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    window.close();  }  dialog.misspelledWord = document.getElementById("MisspelledWord");  dialog.replaceWordInput = document.getElementById("ReplaceWord");  dialog.suggestedList = document.getElementById("SuggestedList");  dialog.languageList = document.getElementById("LanguageList");  if (!dialog.misspelledWord ||      !dialog.replaceWordInput ||      !dialog.suggestedList  ||      !dialog.languageList )  {    dump("Not all dialog controls were found!!!\n");  }  // 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];    if (misspelledWord != "") {    dump("First misspelled word = "+misspelledWord+"\n");    // Put word in the borderless button used to show the misspelled word    dialog.misspelledWord.setAttribute("value", misspelledWord);    // Get the list of suggested replacements    FillSuggestedList();  } else {    dump("No misspelled word found\n");    // No more words - we're done!    Close();  }  // Initial replace word is the misspelled word;  dialog.replaceWordInput.value = misspelledWord;  //Use English for now TODO: Kin needs to finish this work so we can fill in list  dialog.languageList.selectedIndex = 0;  dump("Language Listed Index = "+dialog.languageList.selectedIndex+"\n");  dialog.suggestedList.focus();  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/55e2ac48d1fb48ad8a914b30500b323d66968a41/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js