rem: child = bucket.removeChild(bucket.childNodes[i]); 
add: child = bucket.removeChild(bucket.lastChild); 
context: function RemoveAllAttachments(){  var child;  var bucket = document.getElementById("attachmentBucket");  for (var i = bucket.childNodes.length - 1; i >= 0; i--)  {    child = bucket.removeChild(bucket.childNodes[i]);    // Let's release the attachment object hold by the node else it won't go away until the window is destroyed    child.attachment = null;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/26cdb24398282987c2afbd83349e8203022ac384/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js