mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 343238 JavaScript error for zero length tasks. patch by thomas.benisch@sun.com, r=jminta
This commit is contained in:
parent
8b22390c60
commit
82d83c5a4f
@ -1256,7 +1256,10 @@
|
||||
|
||||
if (targetDate.compare(finishDate) == 0) {
|
||||
// Zero length events are silly, but we have to handle them
|
||||
return [this.findBoxForDate(targetDate)];
|
||||
var box = this.findBoxForDate(targetDate);
|
||||
if (box) {
|
||||
boxes.push(box);
|
||||
}
|
||||
}
|
||||
|
||||
while (targetDate.compare(finishDate) == -1) {
|
||||
|
@ -2530,7 +2530,10 @@
|
||||
|
||||
if (targetDate.compare(finishDate) == 0) {
|
||||
// Zero length events are silly, but we have to handle them
|
||||
return [this.findColumnForDate(targetDate)];
|
||||
var col = this.findColumnForDate(targetDate);
|
||||
if (col) {
|
||||
columns.push(col);
|
||||
}
|
||||
}
|
||||
|
||||
while (targetDate.compare(finishDate) == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user