rem: dump(aItems[i] + "\n"); var itemOccurrence = aItems[i];  var calEvent = itemOccurrence.item.QueryInterface(Components.interfaces.calIEvent); var startDate = new Date(calEvent.startDate.jsDate); dayBoxItem = savedThis.dayBoxItemArray[savedThis.indexOfDate(startDate)];   var eventBox = savedThis.createEventBox(itemOccurrence); dayBoxItem.appendChild(eventBox);  
add: eventController.createEventBox(aItems[i], function(a1, a2, a3) { eventController.createEventBoxInternal(a1, a2, a3); } ); 
context:         onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) {            for (var i = 0; i < aCount; ++i) {                dump(aItems[i] + "\n");                var itemOccurrence = aItems[i];                 var calEvent = itemOccurrence.item.QueryInterface(Components.interfaces.calIEvent);                var startDate = new Date(calEvent.startDate.jsDate);                dayBoxItem = savedThis.dayBoxItemArray[savedThis.indexOfDate(startDate)];                // XXX need to look at the number of children here and determine what we're supposed to do                var eventBox = savedThis.createEventBox(itemOccurrence);                dayBoxItem.appendChild(eventBox);             }        }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/cdf001b203f249bc1f5451e4f2d6fe7d62635de7/monthView.js/buggy/calendar/resources/content/monthView.js