bug 270995: look at exceptions after looking at addiotions, to make expections work. patch by daniel.boelzle@sun.com, r=mvl

This commit is contained in:
mvl%exedo.nl 2006-02-02 14:48:02 +00:00
parent d41b8a15d0
commit 4e901494fc

View File

@ -328,8 +328,16 @@ calRecurrenceInfo.prototype = {
var startDate = this.mBaseItem.recurrenceStartDate;
var dates = [];
for each (ritem in this.mRecurrenceItems) {
// apply positive items before negative:
var sortedRecurrenceItems = [];
for each ( var ritem in this.mRecurrenceItems ) {
if (ritem.isNegative)
sortedRecurrenceItems.push(ritem);
else
sortedRecurrenceItems.unshift(ritem);
}
for each (ritem in sortedRecurrenceItems) {
var cur_dates;
// if both range start and end are specified, we ask for all of the occurrences,