rem: var calendarObjectToDelete = gCalendarWindow.calendarManager.getSelectedCalendar(); 
add: var IdToDelete = gCalendarWindow.calendarManager.getSelectedCalendarId()  var calendarObjectToDelete = this.rdf.getNode( IdToDelete ); 
context: function deleteCalendar( ){   var calendarObjectToDelete = gCalendarWindow.calendarManager.getSelectedCalendar();   gCalendarWindow.calendarManager.deleteCalendar( calendarObjectToDelete );   refreshEventTree( getAndSetEventTable() );   refreshToDoTree( false );   gCalendarWindow.currentView.refreshEvents();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/bdbe25994aa0abc58ca7d561f9f21a9f2c5c633a/calendarManager.js/buggy/calendar/resources/content/calendarManager.js