rem:  if (!endDate) { 
add: if (!endDate) { 
context: function newEvent( startDate, endDate, allDay ){   // create a new event to be edited and added   var calendarEvent = createEvent();   /*      if (!startDate) {       startDate = gCalendarWindow.currentView.getNewEventDate();   }   calendarEvent.startDate.jsDate = startDate;   if (!endDate)   {       var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", gCalendarBundle.getString("defaultEventLength" ) );              var endDateTime = startDate.clone();       endDateTime.minute += MinutesToAddOn; // XXX this could overflow       endDateTime.normalize();   }   calendarEvent.endDate.jsDate = endDate   */      if (allDay)       calendarEvent.isAllDay = true;      var server = getSelectedCalendarPathOrNull();      editNewEvent( calendarEvent, server );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/945a35b5d0e6dc833432900401f4749ef332a2eb/calendar.js/buggy/calendar/resources/content/calendar.js