rem: var bucketTree = document.getElementById("attachmentBucket"); if ( bucketTree ) { var body = document.getElementById("bucketBody");  if ( body && bucketTree.selectedItems && bucketTree.selectedItems.length ) { for ( var item = bucketTree.selectedItems.length - 1; item >= 0; item-- ) body.removeChild(bucketTree.selectedItems[item]);  gContentChanged = true; }  bucketTree.selectedItems.length = 0; 
add: var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length > 0) { for (var item = bucket.selectedItems.length - 1; item >= 0; item-- ) bucket.removeChild(bucket.selectedItems[item]); gContentChanged = true; 
context: function RemoveSelectedAttachment(){  var bucketTree = document.getElementById("attachmentBucket");  if ( bucketTree )  {    var body = document.getElementById("bucketBody");    if ( body && bucketTree.selectedItems && bucketTree.selectedItems.length )    {      for ( var item = bucketTree.selectedItems.length - 1; item >= 0; item-- )        body.removeChild(bucketTree.selectedItems[item]);      gContentChanged = true;    }    // Clear selection after removal    bucketTree.selectedItems.length = 0;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js