rem: if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { 
add: var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount();  gICalLib.batchMode = true;  for (var t=0; t<numRanges; t++){ tree.view.selection.getRangeAt(t,start,end); for (var v=start.value; v<=end.value; v++){ var treeitem = tree.treeBoxObject.view.getItemAtIndex( v ); 
context: function unifinderDeleteToDoCommand( DoNotConfirm ){// TODO Implement Confirm   var tree = document.getElementById( ToDoUnifinderTreeName );   if (tree.treeBoxObject.selection.count > 0)   {      var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex );      if(treeitem)      {         var todoId = treeitem.getAttribute("toDoID");         gICalLib.deleteTodo( todoId );      }   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b4e4c6b0010076ab0800720b8c0a4400898dced7/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js