rem: for (t=0; t<numRanges; t++){ 
add: for (t=numRanges-1; t>=0; t--){ 
context: function deleteToDoCommand( DoNotConfirm ){   // TODO Implement Confirm    var tree = document.getElementById( ToDoUnifinderTreeName );    var start = new Object();    var end = new Object();    var numRanges = tree.view.selection.getRangeCount();    var t;    var v;    var toDoItem;    if( numRanges == 1 ) {        for (t=0; t<numRanges; t++){            tree.view.selection.getRangeAt(t,start,end);            for (v=start.value; v<=end.value; v++){                toDoItem = tree.taskView.getCalendarTaskAtRow( v );                refreshRemoteCalendarAndRunFunction( toDoItem.id, toDoItem.parent.server, "deleteTodo" );            }        }    } else {        gICalLib.batchMode = true;        for (t=0; t<numRanges; t++){            tree.view.selection.getRangeAt(t,start,end);            for (v=start.value; v<=end.value; v++){                toDoItem = tree.taskView.getCalendarTaskAtRow( v );                var todoId = toDoItem.id                gICalLib.deleteTodo( todoId );               }        }        gICalLib.batchMode = false;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d134c9d84e5137436a807d8599a1adabd14866ac/calendar.js/clean/calendar/resources/content/calendar.js