@syncfusion/ej2-schedule 27.1.57 → 27.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22314,7 +22314,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
22314
22314
  if (eventObj[this.fields.isAllDay] && end === eventObj[this.fields.endTime].getTime() || isSpanned.isRight) {
22315
22315
  end = addDays(new Date(end), -1).getTime();
22316
22316
  }
22317
- isSpanned.count = Math.ceil((end - start) / MS_PER_DAY) + 1;
22317
+ isSpanned.count = Math.round((end - start) / MS_PER_DAY) + 1;
22318
22318
  }
22319
22319
  }
22320
22320
  eventData.isSpanned = isSpanned;
@@ -29395,10 +29395,12 @@ var Print = /** @__PURE__ @class */ (function () {
29395
29395
  var _this = this;
29396
29396
  this.printWindow = print$1(this.printInstance.element, this.printWindow);
29397
29397
  this.printWindow.onbeforeunload = function () {
29398
- _this.printInstance.off(print, _this.contentReady);
29399
- _this.printInstance.element.remove();
29400
- _this.printInstance.destroy();
29401
- _this.printInstance = null;
29398
+ if (_this.printInstance) {
29399
+ _this.printInstance.off(print, _this.contentReady);
29400
+ _this.printInstance.element.remove();
29401
+ _this.printInstance.destroy();
29402
+ _this.printInstance = null;
29403
+ }
29402
29404
  _this.printWindow = null;
29403
29405
  };
29404
29406
  };