rem: var ThisToDo = getToDoFromEvent( event ); if( ThisToDo ) {  document.getElementById( "delete_todo_command" ).removeAttribute( "disabled" ); } else { tree.view.selection.clearSelection(); 
add: var thisToDo = getToDoFromEvent(event); if (thisToDo) {  document.getElementById("calendar_delete_todo_command").removeAttribute("disabled"); } else { tree.view.selection.clearSelection(); 
context: function unifinderMouseDownToDo( event ){   var tree = document.getElementById( ToDoUnifinderTreeName );   var treechildren = tree.getElementsByTagName( "treechildren" )[0];   var ThisToDo = getToDoFromEvent( event );   if( ThisToDo )    {      // TODO HACK notifiers should be rewritten to integrate events and todos      document.getElementById( "delete_todo_command" ).removeAttribute( "disabled" );   } else   {      tree.view.selection.clearSelection();      // TODO HACK notifiers should be rewritten to integrate events and todos      document.getElementById( "delete_todo_command" ).setAttribute( "disabled", "true" );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/adf8def97c78eca43decf76e12f684786f6bea7d/calendar-unifinder-todo.js/buggy/calendar/base/content/calendar-unifinder-todo.js