context: function changeContextMenuForToDo( event ){   var toDoItem = getToDoFromEvent( event );      if( toDoItem )   {      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" );      }   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/41a93646b98f2dbcf1247d65196f2f99336c4204/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js