rem: calendarEvent = calendarEventArray[i] 
add: if( isEvent( calendarEventArray[i] ) ) { var calendarEvent = calendarEventArray[i]; 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a988e91da0018285403052b99c8aa46f194e3e5/importExport.js/buggy/calendar/resources/content/importExport.js