rem: if ((this.entryDate && this.entryDate.compare(aStartDate) >= 0 && this.entryDate.compare(aEndDate) <= 0) || (this.dueDate && this.dueDate.compare(aStartDate) >= 0 && this.dueDate.compare(aEndDate) <= 0)) { aCount.value = 1; return ([ this ]); 
add:    function convertDate(date) { if (!date) return null; if (date.isDate) { var newDate = date.clone(); newDate.hour = 0; newDate.minute = 0; newDate.second = 0; newDate.isDate = false; return newDate; } else { return date; } }  var entry = convertDate(this.entryDate); var due = convertDate(this.dueDate);  var isInterval = entry && due; var isZeroLength = isInterval ? !entry.compare(due) : true; var dateTime = entry ? entry : due;  if ((isZeroLength && dateTime.compare(aStartDate) >= 0 && dateTime.compare(aEndDate) < 0) || (!isZeroLength && entry.compare(aEndDate) < 0 && due.compare(aStartDate) > 0)) {  aCount.value = 1; return ([ this ]); 
context:     getOccurrencesBetween: function(aStartDate, aEndDate, aCount) {        if (this.recurrenceInfo) {            return this.recurrenceInfo.getOccurrences(aStartDate, aEndDate, 0, aCount);        }        if (!this.entryDate && !this.dueDate)            return null;        if ((this.entryDate && this.entryDate.compare(aStartDate) >= 0 && this.entryDate.compare(aEndDate) <= 0) ||            (this.dueDate && this.dueDate.compare(aStartDate) >= 0 && this.dueDate.compare(aEndDate) <= 0))        {            aCount.value = 1;            return ([ this ]);        }        aCount.value = 0;        return null;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dcac9a57814af3930c40d03d928d6520821da6bb/calTodo.js/buggy/calendar/base/src/calTodo.js