@syncfusion/ej2-schedule 27.1.57 → 27.1.58

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.
@@ -28319,10 +28319,12 @@ class Print {
28319
28319
  contentReady() {
28320
28320
  this.printWindow = print$1(this.printInstance.element, this.printWindow);
28321
28321
  this.printWindow.onbeforeunload = () => {
28322
- this.printInstance.off(print, this.contentReady);
28323
- this.printInstance.element.remove();
28324
- this.printInstance.destroy();
28325
- this.printInstance = null;
28322
+ if (this.printInstance) {
28323
+ this.printInstance.off(print, this.contentReady);
28324
+ this.printInstance.element.remove();
28325
+ this.printInstance.destroy();
28326
+ this.printInstance = null;
28327
+ }
28326
28328
  this.printWindow = null;
28327
28329
  };
28328
28330
  }