Commit de69323b authored by Tobias Reischmann's avatar Tobias Reischmann

Allow start and end date setters to handle null values.

parent c3389f5e
......@@ -146,7 +146,7 @@ mivExchangeEvent.prototype = {
},
set startDate(aValue) {
if (aValue.toString() != this.startDate.toString()) {
if (aValue == null || this.startDate == null || aValue.toString() != this.startDate.toString()) {
this._newStartDate = aValue;
this._calEvent.startDate = aValue;
}
......@@ -167,7 +167,7 @@ mivExchangeEvent.prototype = {
set endDate(aValue) {
//dump("set enddate: title:"+this.title+", aValue:"+aValue);
if (aValue.toString() != this.endDate.toString()) {
if (aValue == null || this.startDate == null || aValue.toString() != this.endDate.toString()) {
this._newEndDate = aValue;
this._calEvent.endDate = aValue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment