rem: list.selectedIndex = -1; for( i = (list.length-1); i >= 0; i-- ) { list.remove(i); 
add: if (list) { list.selectedIndex = -1; for( i=list.length-1; i >= 0; i--) list.remove(i); 
context: function ClearList(list){  list.selectedIndex = -1;  for( i = (list.length-1); i >= 0; i-- ) {    list.remove(i);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/711c0f72c9655c2558d43bb716847f1a294b8372/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js