rem: dump("Doing Startup...\n"); 
add: if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); 
context: function Startup(){  dump("Doing Startup...\n");  // get the editor shell from the parent window  editorShell = window.opener.editorShell;  editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if(!editorShell) {    dump("EditoreditorShell not found!!!\n");    window.close();  }  dump("EditoreditorShell found for Spell Checker dialog\n");  // Create dialog object to store controls for easy access  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    window.close();  }  dialog.wordInput = document.getElementById("Word");  dialog.suggestedList = document.getElementById("SuggestedList");  dialog.languageList = document.getElementById("");  if (!dialog.wordInput ||      !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 input field    dialog.wordInput.value = misspelledWord;    // Get the list of suggested replacements    FillSuggestedList();  } else {    dump("No misspelled word found\n");  }  dialog.suggestedList.focus();  }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/f85acd993e8835575d09e6f4e3a5600489696848/EdSpellCheck.js/buggy/editor/ui/dialogs/content/EdSpellCheck.js