rem: var eventBox = savedThis.createEventBox(aItems[i]); dump("Adding eventBox " + eventBox + "\n"); document.getElementById("day-view-content-board").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) {                var eventBox = savedThis.createEventBox(aItems[i]);                dump("Adding eventBox " + eventBox + "\n");                document.getElementById("day-view-content-board").appendChild(eventBox);            }        }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/cdf001b203f249bc1f5451e4f2d6fe7d62635de7/dayView.js/buggy/calendar/resources/content/dayView.js