use .compare the right way, to make non-conflicting events show up in the

same column.
bug 306314, r=jminta
This commit is contained in:
mvl%exedo.nl 2005-08-29 17:53:57 +00:00
parent 6435df665d
commit e64a2bc4cb

View File

@ -887,9 +887,11 @@ CalendarView.prototype.setDrawProperties = function calView_setDrawProperties( d
//update vars for next loop
if( !(eventStartListIndex in dayEventStartList) || dayEventStartList[eventStartListIndex] == null )
done = true;
else
nextEventIsStarting = dayEventStartList[eventStartListIndex].start
else {
var compResult = dayEventStartList[eventStartListIndex].start
.compare(dayEventEndList[eventEndListIndex].end);
nextEventIsStarting = compResult < 0 ? true : false;
}
}
// set totalSlotCount for the last contiguous group of events
for ( i = groupStartIndex; i < dayEventStartList.length; i++ )