rem: for ( var item = bucketTree.selectedItems.length - 1; item >= 0; item-- ) body.removeChild(bucketTree.selectedItems[item]); 
add: var start = {}, end = {}; selection.getRangeAt(i,start,end); for (j = end.value; j >= start.value; --j) { var item = bucketTree.contentView.getItemAtIndex(j); body.removeChild(item); } 
context: function RemoveSelectedFromBucket(){  var bucketTree = document.getElementById("addressBucket");  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]);    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/abSelectAddressesDialog.js/buggy/mailnews/addrbook/resources/content/abSelectAddressesDialog.js