rem: var notifier = Components.classes["@mozilla.org/embedcomp/appstartup-notifier;1"].getService(Components.interfaces.nsIObserver); 
add: this.notifier = Components.classes["@mozilla.org/embedcomp/appstartup-notifier;1"].getService(Components.interfaces.nsIObserver); var notifier = this.notifier; 
context:     startup: function() {        if (this.mStarted)            return;        dump("Starting calendar alarm service\n");        this.mStarted = true;        var calendarManager = Components.classes["@mozilla.org/calendar/manager;1"].getService(Components.interfaces.calICalendarManager);        calendarManager.addObserver(this.calendarManagerObserver);        var calendars = calendarManager.getCalendars({});        for each(var calendar in calendars) {            this.observeCalendar(calendar);        }        this.findAlarms();        /* set up a timer to update alarms every N hours */        var timerCallback = {            alarmService: this,            notify: function(timer) {                this.alarmService.findAlarms();            }        };        this.mUpdateTimer = newTimerWithCallback(timerCallback, kHoursBetweenUpdates * 3600000, true);        /* tell people that we're alive so they can start monitoring alarms */        var notifier = Components.classes["@mozilla.org/embedcomp/appstartup-notifier;1"].getService(Components.interfaces.nsIObserver);        notifier.observe(null, "alarm-service-startup", null);        /* Test Code        this.addAlarm(new testAlarm("Meeting with Mr. T"));        this.addAlarm(new testAlarm("Blah blah"));        */    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9f688a3936f9414d4a12731d84c68caf503f750d/calAlarmService.js/buggy/calendar/base/src/calAlarmService.js