rem: var numSelected = obj.tree_node.selectedItems.length; 
add: var numSelected = obj.listbox.selectedItems.length; 
context: function RemoveDomains(obj){  var nextNode = null;  var numSelected = obj.tree_node.selectedItems.length;  var deleted_all = false;  while (obj.tree_node.selectedItems.length > 0) {  var selectedNode = obj.tree_node.selectedItems[0];    nextNode = selectedNode.nextSibling;  if (!nextNode)    if (selectedNode.previousSibling)    nextNode = selectedNode.previousSibling;    var row  =  selectedNode.firstChild;    var cell =  row.firstChild;    row.removeChild(cell);    selectedNode.removeChild(row);    obj.treeroot_node.removeChild(selectedNode);   } //while  if (nextNode) {    obj.tree_node.selectItem(nextNode)  } //if  UpdateSavePrefString(obj);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/pref-formatting.js/clean/mailnews/compose/prefs/resources/content/pref-formatting.js