add: gCalendarWindow.clearSelectedEvent( calendarEvent );  
context: function unifinderDeleteCommand( DoNotConfirm ){   if( unifinderToDoHasFocus() )   {      unifinderDeleteToDoCommand( DoNotConfirm );      return;   }      var SelectedItems = gCalendarWindow.EventSelection.selectedEvents;      if( SelectedItems.length == 1 )   {      var calendarEvent = SelectedItems[0];      if ( calendarEvent.title != "" ) {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteEvent+" "+calendarEvent.title+"?" ) ) {               gICalLib.deleteEvent( calendarEvent.id );            }         }         else            gICalLib.deleteEvent( calendarEvent.id );      }      else      {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteUntitledEvent ) ) {               gICalLib.deleteEvent( calendarEvent.id );            }         }         else            gICalLib.deleteEvent( calendarEvent.id );      }   }   else if( SelectedItems.length > 1 )   {      gICalLib.batchMode = true;            if( !DoNotConfirm )      {         if( confirm( "Are you sure you want to delete everything?" ) )         {            while( SelectedItems.length )            {               var ThisItem = SelectedItems.pop();                              gICalLib.deleteEvent( ThisItem.id );            }         }      }      else      {         while( SelectedItems.length )         {            var ThisItem = SelectedItems.pop();                        gICalLib.deleteEvent( ThisItem.id );         }      }      gICalLib.batchMode = false;   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e75593a0d95fef4f9047526ec4c3cc95a875374d/unifinder.js/buggy/calendar/resources/content/unifinder.js