rem: if ((this.startDate.compare(aStartDate) >= 0 && this.startDate.compare(aEndDate) <= 0) || (this.endDate.compare(aStartDate) >= 0 && this.endDate.compare(aEndDate) <= 0)) { aCount.value = 1; return ([ this ]); 
add:    function convertDate(date) { 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 start = convertDate(this.startDate); var end = convertDate(this.endDate);  var isZeroLength = !start.compare(end); if ((isZeroLength && start.compare(aStartDate) >= 0 && start.compare(aEndDate) < 0) || (!isZeroLength && start.compare(aEndDate) < 0 && end.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.startDate.compare(aStartDate) >= 0 && this.startDate.compare(aEndDate) <= 0) ||            (this.endDate.compare(aStartDate) >= 0 && this.endDate.compare(aEndDate) <= 0))        {            aCount.value = 1;            return ([ this ]);        }        aCount.value = 0;        return null;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d73f8a6e7c08b1ae7998242b67063eae445abd65/calEvent.js/buggy/calendar/base/src/calEvent.js