rem:  gICalLib.addEvent( calendarEvent, DefaultServer.path ); 
add: gICalLib.addEvent( calendarEvent, DefaultServer ); 
context: function addEventsToCalendar( calendarEventArray, silent ){   gICalLib.batchMode = true;   for(var i = 0; i < calendarEventArray.length; i++)   {      calendarEvent = calendarEventArray[i]	             // Check if event with same ID already in Calendar. If so, import event with new ID.      if( gICalLib.fetchEvent( calendarEvent.id ) != null ) {         calendarEvent.id = createUniqueID( );      }      // the start time is in zulu time, need to convert to current time      if(calendarEvent.allDay != true)      convertZuluToLocal( calendarEvent );      // open the event dialog with the event to add      if( silent )      {         var DefaultServer = gCalendarWindow.calendarManager.getDefaultServer();         gICalLib.addEvent( calendarEvent, DefaultServer.path );      }      else         editNewEvent( calendarEvent );   }   gICalLib.batchMode = false;   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/91de5f7677a35ce377c3c02aff8c837e9217e50b/calendarImportExport.js/buggy/calendar/resources/content/calendarImportExport.js