rem: calendarEvent = calendarEventArray[i] 
add: calendarEvent = calendarEventArray[i]; 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ec0c0a5e41808e763b20a99a23f06017fdf53509/calendarImportExport.js/buggy/calendar/resources/content/calendarImportExport.js