rem: for (v = start.value; v <= end.value; v++) { todoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo ); 
add: for (var v = start.value; v <= end.value; v++) { toDoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = toDoItem.clone().QueryInterface( Components.interfaces.calITodo ); 
context: function contextChangeProgress( event, Progress ){   var tree = document.getElementById( ToDoUnifinderTreeName );   var start = new Object();   var end = new Object();   var numRanges = tree.view.selection.getRangeCount();   var toDoItem;   if(numRanges == 0)      return;   startBatchTransaction();   for (var 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 newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo );          newItem.percentComplete = Progress;          switch (Progress) {              case 0:                  newItem.status = "NONE";                  break;              case 100:                  newItem.status = "COMPLETED";                  break;              default:                  newItem.status = "IN-PROCESS";                  break;          }          doTransaction('modify', newItem, newItem.calendar, todoItem, null);      }   }   endBatchTransaction();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/28f6b9f9c9ced9cfa755f978e503169317454227/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js