rem: for (var i = bucket.childNodes.length - 1; i >= 0; i--) 
add: while (bucket.hasChildNodes()) 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/26cdb24398282987c2afbd83349e8203022ac384/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js