Adding in try catch to see if I can catch the exception that causes the calendar to crash sometimes.

This commit is contained in:
mikep%oeone.com 2003-02-06 18:38:19 +00:00
Родитель 76b9c94820
Коммит 76e0cd99c1
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -665,8 +665,16 @@ function eventArrayToICalString( calendarEventArray, doPatchForExport )
var sTextiCalendar = "";
for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex )
{
try
{
var calendarEvent = calendarEventArray[ eventArrayIndex ].clone();
}
catch( e )
{
alert( "Caught an exception in eventArrayToICalString, while trying to clone the event, it was: \n"+e );
}
// convert time to represent local to produce correct DTSTART and DTEND
if(calendarEvent.allDay != true)
convertLocalToZulu( calendarEvent );