rem: /* bug in the DOM? when I remove the last element, the text remains.  so for now, when I remove the last element, I add back a blank element, then remove it, so that it looks correct.  bug logged #11010 */ if (i == 1) { var opt = new Option(" ", " "); selectNode.add(opt, null); selectNode.remove(0); } 
context: function RemoveLastAttachment(){	dump("RemoveLastAttachment()\n");	selectNode = document.getElementById('attachments');	i = selectNode.options.length;	if (i > 0) {		selectNode.remove(i - 1);		/* bug in the DOM? when I remove the last element, the text		   remains.  so for now, when I remove the last element, I add		   back a blank element, then remove it, so that it looks                   correct.  bug logged #11010 */		if (i == 1) {			var opt = new Option(" ", " ");			selectNode.add(opt, null); 			selectNode.remove(0);		}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8ee7aa94ae2ba61078a33a85a6c8b2c74446efc2/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js