rem: var comp = selWidget.nextSibling;  while (comp.length != 0) { comp.remove(0); } 
add: dump("event.target is " + event.target + "\n"); var comp = selWidget.parentNode; while (selWidget.length) selWidget.remove(0); 
context: function OnFieldSelect(event) {    var selWidget = event.target;    var selectedValue = selWidget.options[selWidget.selectedIndex].value;    dump(selectedValue + " was just selected\n");    var comp = selWidget.nextSibling;    // clear out the widget    while (comp.length != 0) {        comp.remove(0);    }        if (selectedValue == "subject" ||        selectedValue == "sender" ||        selectedValue == "text" ||        selectedValue == "keyword") {        addStringComparators(comp);    } else if (selectedValue == "age") {        addNumericComparators(comp);    } else if (selectedValue == "date") {        addDateComparators(comp);    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f06eb99d336e60297ba7d27663b23e501876da78/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js