rem: getDisplayComposite().removeCalendar(calendar.uri); 
add: getCompositeCalendar().removeCalendar(calendar.uri); 
context: function deleteCalendar(event){    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);     var result = {};     var calendarBundle = document.getElementById("bundle_calendar");    var calendar = document.popupNode.calendar;    var ok = promptService.confirm(        window,        calendarBundle.getString("unsubscribeCalendarTitle"),        calendarBundle.getFormattedString("unsubscribeCalendarMessage",[calendar.name]),        result);       if (ok) {        getDisplayComposite().removeCalendar(calendar.uri);        var calMgr = getCalendarManager();        calMgr.unregisterCalendar(calendar);        // Delete file?        //calMgr.deleteCalendar(cal);    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b6ed036d2d55fbfd325f5325a4e8f425762b43a/calendar.js/buggy/calendar/resources/content/calendar.js