rem: var DisplayDate = new Date(itemOccurrence.occurrenceStartDate.jsDate); dayBoxItem = savedThis.dayBoxItemArray[savedThis.indexOfDate(DisplayDate)]; var eventbox = savedThis.createEventBox(itemOccurrence); dayBoxItem.appendChild(eventbox); 
add: eventController.createEventBox(itemOccurrence, function(a1, a2, a3) { eventController.createEventBoxInternal(a1, a2, a3); } ); 
context:         onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems)        {            dump("OnGetResult in multiweekview\n");            for(var i = 0; i < aCount; ++i )            {                var itemOccurrence = aItems[i];                var calEvent = itemOccurrence.item.QueryInterface(Components.interfaces.calIEvent);                dump("calEvent.title:" + calEvent.title + "\n");                var DisplayDate = new Date(itemOccurrence.occurrenceStartDate.jsDate);                dayBoxItem = savedThis.dayBoxItemArray[savedThis.indexOfDate(DisplayDate)];                var eventbox = savedThis.createEventBox(itemOccurrence);                dayBoxItem.appendChild(eventbox);            }        }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/cdf001b203f249bc1f5451e4f2d6fe7d62635de7/multiweekView.js/clean/calendar/resources/content/multiweekView.js