rem: dump("adding alarm timeout (" + timeout + ") for " + aItem + " at " + aItem.alarmTime + "\n"); 
add: dump("adding alarm timeout (" + timeout + ") for " + aItem + "\n"); } else {  if (aItem.alarmLastAck && aItem.alarmLastAck.compare(alarmTime) >= 0) { dump(aItem.title+' - alarm previously ackd\n'); return; } else { dump("alarm is in the past, and unack'd, firing now!\n"); this.alarmFired(aItem); } 
context:     addAlarm: function(aItem, skipCheck, alarmTime) {        // if aItem.alarmTime >= 'now' && aItem.alarmTime <= gAlarmEndTime        if (!alarmTime)            alarmTime = aItem.alarmTime.getInTimezone("UTC");        var now;        // XXX When the item is floating, should use the default timezone        // from the prefs, instead of the javascript timezone (which is what        // jsDateToFloatingDateTime uses)        if (aItem.alarmTime.timezone == "floating")            now = jsDateToFloatingDateTime((new Date()));        else            now = jsDateToDateTime((new Date())).getInTimezone("UTC");        var callbackObj = {            alarmService: this,            item: aItem,            notify: function(timer) {                this.alarmService.alarmFired(this.item);                delete this.alarmService.mEvents[this.item];            }        };        if ((alarmTime.compare(now) >= 0) || skipCheck) {            // delay is in msec, so don't forget to multiply            var timeout = alarmTime.subtractDate(now).inSeconds * 1000;            var timeUntilRefresh = this.mRangeEnd.subtractDate(now).inSeconds * 1000;            if (timeUntilRefresh < timeout) {                // we'll get this alarm later.  No sense in keeping an extra timeout                return;            }            this.mEvents[aItem.id] = newTimerWithCallback(callbackObj, timeout, false);            dump("adding alarm timeout (" + timeout + ") for " + aItem + " at " + aItem.alarmTime + "\n");        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d2c3b149cf01f0c13b7b145d983a07a549258e0c/calAlarmService.js/clean/calendar/base/src/calAlarmService.js