Skip to content

Commit

Permalink
Add possible fix for #41 and #42
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelte Lagendijk committed Nov 8, 2016
1 parent ce7a699 commit 516391d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar/widget/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ define([
expectObj = this.eventConstraint.indexOf("[%CurrentObject%]") >= 0;

if (this._mxObj && expectObj) {
this._clearCalendar();
constraint = this.eventConstraint.replace(/\[%CurrentObject%\]/gi, this._mxObj.getGuid());
} else if (expectObj) {
this._clearCalendar();
Expand Down Expand Up @@ -228,6 +227,7 @@ define([
thisRef = null;

if (typeof objs === "undefined" || objs === "" || objs.length === 0) {
this._clearCalendar();
return;
}

Expand Down

0 comments on commit 516391d

Please sign in to comment.