rem: var composite = getDisplayComposite(); 
add: var composite = getCompositeCalendar(); 
context: function initCalendarManager(){    var calMgr = getCalendarManager();    var composite = getDisplayComposite();    if (calMgr.getCalendars({}).length == 0) {        var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://"));        calMgr.registerCalendar(homeCalendar);        var name = srGetStrBundle("chrome://calendar/locale/calendar.properties")                                 .GetStringFromName("homeCalendarName");                                         homeCalendar.name = name;        composite.addCalendar(homeCalendar);    }    calMgr.addObserver(calCalendarManagerObserver);    composite.addObserver(calCompositeCalendarObserver);    setCalendarManagerUI();    initColors();    var calendarList = document.getElementById("list-calendars-listbox");    calendarList.addEventListener("select", onCalendarListSelect, true);      // Set up a pref listener so the proper UI bits can be refreshed when prefs     // are changed.     var pb2 = prefService.getBranch("").QueryInterface(         Components.interfaces.nsIPrefBranch2);     pb2.addObserver("calendar.", calPrefObserver, false);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b6ed036d2d55fbfd325f5325a4e8f425762b43a/calendarManagement.js/buggy/calendar/resources/content/calendarManagement.js