rem: document.getElementById( "priority-"+toDoItem.priority+"-menuitem" ).setAttribute( "checked", "true" ); 
add: document.getElementById("priority-"+toDoItem.priority+"-menuitem") .setAttribute("checked", "true"); 
context: function changeContextMenuForToDo( event ){   if (event.target.id != "taskitem-context-menu")     return;   var toDoItem = getToDoFromEvent( event );   // If only one task is selected, enable 'Edit Task'   var tree = document.getElementById( ToDoUnifinderTreeName );    var start = new Object();   var end = new Object();   var numRanges = tree.view.selection.getRangeCount();   tree.view.selection.getRangeAt(0, start, end);   if (numRanges == 1 && (start.value == end.value) && toDoItem) {       document.getElementById("task-context-menu-modify")               .removeAttribute("disabled");       tree.taskView.contextTask = toDoItem;   }   else {       document.getElementById("task-context-menu-modify")               .setAttribute("disabled", true);       tree.taskView.contextTask = null;   }   if( toDoItem )   {      document.getElementById("is_editable").removeAttribute("disabled");      var liveList = document.getElementById( "taskitem-context-menu" ).getElementsByAttribute( "checked", "true" );      // Delete in reverse order.  Moz1.8+ getElementsByAttribute list is      // 'live', so when attribute is deleted the indexes of later elements      // change, but Moz1.7- is not.  Reversed order works with both.      for (var i = liveList.length - 1; i >= 0; i-- )      {         liveList.item(i).removeAttribute( "checked" );      }      if( document.getElementById( "percent-"+toDoItem.percent+"-menuitem" ) )      {         document.getElementById( "percent-"+toDoItem.percent+"-menuitem" ).setAttribute( "checked", "true" );      }         if( document.getElementById( "priority-"+toDoItem.priority+"-menuitem" ) )      {         document.getElementById( "priority-"+toDoItem.priority+"-menuitem" ).setAttribute( "checked", "true" );      }   } else {      document.getElementById("is_editable").setAttribute("disabled", "true");   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f67f52f5e2bdb26aeb53f1b16b7fa723c6f6016d/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js