rem:  if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { calendarEvent.id = createUniqueID( ); 
add:  if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { calendarEvent.id = createUniqueID( ); }   if(calendarEvent.allDay != true) convertZuluToLocal( calendarEvent );   if( silent ) gICalLib.addEvent( calendarEvent, defaultServer.path ); else editNewEvent( calendarEvent ); } else if( isToDo( calendarEventArray[i] ) ) {  calendarTodo = calendarEventArray[i];   if( gICalLib.fetchTodo( calendarTodo.id ) != null ) { calendarTodo.id = createUniqueID( ); }   if( silent ){alert(defaultServer.path); gICalLib.addTodo( calendarTodo, defaultServer.path );} else gICalLib.addTodo( calendarTodo, defaultServer.path );   
context: function addEventsToCalendar( calendarEventArray, silent ){   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 )         gICalLib.addEvent( calendarEvent );      else         editNewEvent( calendarEvent );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b3318ba732d90edfbd2663fc6138503d1a313074/calendarImportExport.js/clean/calendar/resources/content/calendarImportExport.js