rem: if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; 
add: if (aEvent) { modifyEventWithDialog(aEvent); return; } 
context: function editEvent(){   if( gCalendarWindow.EventSelection.selectedEvents.length == 1 )   {      var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0];      if( calendarEvent != null )      {         modifyEventWithDialog(getOccurrenceOrParent(calendarEvent));      }   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/daf762c7fca63c377d255ff7e70b1b7a4b4cb141/calendar.js/buggy/calendar/resources/content/calendar.js