rem: if (selIndex >= 0) { WordToRemove = DictionaryList.options[selIndex].text; dump("Word to remove: "+WordToRemove+"\n"); 
add: if (selIndex >= 0) {  WordToRemove = GetSelectedTreelistValue(DictionaryList); dump("Word to remove: "+WordToRemove+"\n"); 
context: function ReplaceWord(){  if (ValidateWordToAdd()) {    selIndex = DictionaryList.selectedIndex;    if (selIndex >= 0) {      WordToRemove = DictionaryList.options[selIndex].text;      dump("Word to remove: "+WordToRemove+"\n");      spellChecker.RemoveWordFromDictionary(WordToRemove);      try {        // Add to the dictionary list        spellChecker.AddWordToDictionary(WordToAdd);        // Just change the text on the selected item        //  instead of rebuilding the list        ReplaceStringInList(DictionaryList, selIndex, WordToAdd);      } catch (e) {        // Rebuild list and select the word - it was probably already in the list        dump("Exception occured adding word in ReplaceWord\n");        FillDictionaryList();        SelectWordToAddInList();      }    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c0a534c8efb9e6703626cacd6d61cb6ad8eb6680/EdDictionary.js/buggy/editor/ui/dialogs/content/EdDictionary.js