rem: var selValue = GetSelectedTreelistValue(dialog.SuggestedList); dialog.ReplaceWordInput.value = selValue; 
add: var index = dialog.SuggestedList.selectedIndex; if (index == -1) { dialog.ReplaceWordInput.value = PreviousReplaceWord; dump("Word de-selected\n"); } else { var selValue = GetSelectedTreelistValue(dialog.SuggestedList); dialog.ReplaceWordInput.value = selValue; } SetReplaceEnable(); 
context: function SelectSuggestedWord(){  if (allowSelectWord)  {    var selValue = GetSelectedTreelistValue(dialog.SuggestedList);    dialog.ReplaceWordInput.value = selValue;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a62a9dffa18e5793a2281b90ef7939a2ae5b769c/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js