rem: if (aNewItem.alarmTime) this.alarmService.addAlarm(aNewItem, false); 
add: if (aNewItem.alarmOffset) this.alarmService.addAlarm(aNewItem); 
context: function calAlarmService() {    this.wrappedJSObject = this;    this.calendarObserver = {        alarmService: this,        onStartBatch: function() { },        onEndBatch: function() { },        onLoad: function() { },        onAddItem: function(aItem) {            if (aItem.alarmTime)                this.alarmService.addAlarm(aItem, false);        },        onModifyItem: function(aNewItem, aOldItem) {            this.alarmService.removeAlarm(aOldItem);            if (aNewItem.alarmTime)                this.alarmService.addAlarm(aNewItem, false);        },        onDeleteItem: function(aDeletedItem) {            this.alarmService.removeAlarm(aDeletedItem);        },        onAlarm: function(aAlarmItem) { },        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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/24e6bb82600f00466ed33ae7f2c3b625e5f5591c/calAlarmService.js/buggy/calendar/base/src/calAlarmService.js