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
Родитель c50a37db3f
Коммит 75eccb0c8e
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -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,