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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1be31ad81a9a6877b421130ae9b85aad08e4e3ab/calendar.js/clean/calendar/resources/content/calendar.js