rem: var SelectedItems = gCalendarWindow.EventSelection.selectedEvents; deleteItems( SelectedItems, DoNotConfirm ); gCalendarWindow.EventSelection.emptySelection(); 
add: var SelectedItems = currentView().getSelectedItems({}); deleteItems( SelectedItems, DoNotConfirm ); 
context: function deleteEventCommand( DoNotConfirm ){   var SelectedItems = gCalendarWindow.EventSelection.selectedEvents;   deleteItems( SelectedItems, DoNotConfirm );   gCalendarWindow.EventSelection.emptySelection();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/daf762c7fca63c377d255ff7e70b1b7a4b4cb141/calendar.js/buggy/calendar/resources/content/calendar.js