rem: var calendarObject = calendarEventArray[ eventArrayIndex ].clone(); 
add: var calendarEvent = calendarEventArray[ eventArrayIndex ].clone(); 
context: function eventArrayToICalString( calendarEventArray, doPatchForExport ){      if( !calendarEventArray)      calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;   var sTextiCalendar = "";   for( var eventArrayIndex = 0;  eventArrayIndex < calendarEventArray.length; ++eventArrayIndex )   {      var calendarObject = calendarEventArray[ eventArrayIndex ].clone();      // convert time to represent local to produce correct DTSTART and DTEND      if( isEvent(calendarObject) && calendarObject.allDay != true )        convertLocalToZulu( calendarObject );           // check if all required properties are available      if( calendarObject.method == 0 )         calendarObject.method = calendarObject.ICAL_METHOD_PUBLISH;      if( calendarObject.stamp.year ==  0 )         calendarObject.stamp.setTime( new Date() );      if ( isEvent(calendarObject) && doPatchForExport )        sTextiCalendar += patchICalStringForExport( calendarObject.getIcalString() );      else      {          if( isEvent(calendarObject) )            sTextiCalendar += calendarObject.getIcalString();         else            sTextiCalendar += calendarObject.getTodoIcalString();      }   }   return sTextiCalendar;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5d261082cfdf78e9abe5a109fca55443e889fab5/importExport.js/buggy/calendar/resources/content/importExport.js