rem: getCalendarManager().addObserver(calCalendarManagerObserver); getDisplayComposite().addObserver(calCompositeCalendarObserver, 0); 
add: var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar: calMgr.registerCalendar(homeCalendar);  homeCalendar.name = "Home"; composite.addCalendar(homeCalendar); } calMgr.addObserver(calCalendarManagerObserver); composite.addObserver(calCompositeCalendarObserver, 0); 
context: function initCalendarManager(){    getCalendarManager().addObserver(calCalendarManagerObserver);    getDisplayComposite().addObserver(calCompositeCalendarObserver, 0);    setCalendarManagerUI();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/08c99de1e6eba91b2b54f17e9c39560681dfe2b9/calendarManagement.js/clean/calendar/resources/content/calendarManagement.js