rem: server = selectedCalendarItem.calendarObject.path; 
add: server = selectedCalendarItem.calendarPath; 
context: function newEvent( startDate, endDate ){   // create a new event to be edited and added   var calendarEvent = createEvent();      calendarEvent.start.setTime( startDate );      if( !endDate )   {      var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", 60 );         var endDateTime = startDate.getTime() + ( 1000 * 60 * MinutesToAddOn );         calendarEvent.end.setTime( endDateTime );   }   else   {      calendarEvent.end.setTime( endDate.getTime() );   }      //get the selected calendar   var selectedCalendarItem = document.getElementById( "list-calendars-listbox" ).selectedItem;      var server = null;   if( selectedCalendarItem )   {      server = selectedCalendarItem.calendarObject.path;   }      editNewEvent( calendarEvent, server );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendar.js/buggy/calendar/resources/content/calendar.js