rem: if (aNewItem.alarmOffset) this.alarmService.addAlarm(aNewItem); 
add: this.onAddItem(aNewItem); 
context: function calAlarmService() {    this.wrappedJSObject = this;    this.calendarObserver = {        alarmService: this,        // calIObserver:        onStartBatch: function() { },        onEndBatch: function() { },        onLoad: function() { },        onAddItem: function(aItem) {            if (aItem.alarmOffset)                this.alarmService.addAlarm(aItem);        },        onModifyItem: function(aNewItem, aOldItem) {            this.alarmService.removeAlarm(aOldItem);            if (aNewItem.alarmOffset)                this.alarmService.addAlarm(aNewItem);        },        onDeleteItem: function(aDeletedItem) {            this.alarmService.removeAlarm(aDeletedItem);        },        onError: function(aErrNo, aMessage) { }    };    this.calendarManagerObserver = {        alarmService: this,        onCalendarRegistered: function(aCalendar) {            this.alarmService.observeCalendar(aCalendar);        },        onCalendarUnregistering: function(aCalendar) {            this.alarmService.unobserveCalendar(aCalendar);        },        onCalendarDeleting: function(aCalendar) {},        onCalendarPrefSet: function(aCalendar, aName, aValue) {},        onCalendarPrefDeleting: function(aCalendar, aName) {}    };}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ee26e6c07187be252267ba60b9b5c200874f6365/calAlarmService.js/clean/calendar/base/src/calAlarmService.js