Closed GoogleCodeExporter closed 9 years ago
Fix: Just wrap with a check to make sure it's not null as follows:
if(this.StartDateTime != null) {
if(ev.EndDateTime) {
if (typeof ev.EndDateTime == 'object' && ev.EndDateTime.getDate) {
this.EndDateTime = ev.EndDateTime; }
if (typeof ev.EndDateTime == 'string' && ev.EndDateTime.split) {
this.EndDateTime = _getJSONDate(ev.EndDateTime); }
} else {
this.EndDateTime = this.StartDateTime.clone();
}
if
(this.StartDateTime.clone().clearTime().compareTo(this.EndDateTime.clone().clear
Time())
== 0) {
single.push(this);
} else if
(this.StartDateTime.clone().clearTime().compareTo(this.EndDateTime.clone().clear
Time())
== -1) {
multi.push(this);
}
}
Original comment by brend...@gmail.com
on 9 Sep 2009 at 7:04
Original comment by k.leneau@gmail.com
on 8 Apr 2010 at 7:24
Original issue reported on code.google.com by
brend...@gmail.com
on 9 Sep 2009 at 6:48