rem: var pbi = prefService.getBranch(""); pbi = pbi.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver("calendar.category.color.", categoryPrefObserver); 
add: finishCalendarManager(); 
context: function calendarFinish(){   finishCalendarUnifinder();      finishCalendarToDoUnifinder();   var pbi = prefService.getBranch("");   pbi = pbi.QueryInterface(Components.interfaces.nsIPrefBranch2);   pbi.removeObserver("calendar.category.color.", categoryPrefObserver);   gCalendarWindow.close();   gICalLib.removeObserver( gEventSource.alarmObserver );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b9aa4f83792b252ab911a4e7f0f50a9c52275c3f/calendar.js/buggy/calendar/resources/content/calendar.js