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