rem:  if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); }   do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (word != "") { AppendStringToList(list, word); 
add: if (MisspelledWord.length > 0) {  do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (word != "") { AppendStringToList(list, word); } } while (word != ""); if (list.length == 0) {  AppendStringToList(list, GetString("NoSuggestedWords")); allowSelectWord = false; } else { allowSelectWord = true; 
context: function FillSuggestedList(firstWord){  list = dialog.suggestedList;  // Clear the current contents of the list  ClearList(list);  // We may have the initial word  if (firstWord && firstWord != "") {    dump("First Word = "+firstWord+"\n");    AppendStringToList(list, firstWord);  }  // Get suggested words until an empty string is returned  do {    word = spellChecker.GetSuggestedWord();    dump("Suggested Word = "+word+"\n");    if (word != "") {      AppendStringToList(list, word);    }  } while (word != "");  if (list.length == 0) {    // No suggestions - show a message but don't let user select it    AppendStringToList(list, GetString("NoSuggestedWords"));    allowSelectWord = false;  } else {    allowSelectWord = true;  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/55e2ac48d1fb48ad8a914b30500b323d66968a41/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js