зеркало из https://github.com/mozilla/pjs.git
Adding in try catch to see if I can catch the exception that causes the calendar to crash sometimes.
This commit is contained in:
Родитель
76b9c94820
Коммит
76e0cd99c1
|
@ -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 );
|
||||
|
|
Загрузка…
Ссылка в новой задаче