add:    var pb2 = prefService.getBranch("").QueryInterface( Components.interfaces.nsIPrefBranch2); pb2.addObserver("calendar.", calPrefObserver, false); 
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);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/171c85a7a13067ffed9225a0c6d21095937130a6/calendarManagement.js/buggy/calendar/resources/content/calendarManagement.js