@syncfusion/ej2-base 20.1.47 → 20.1.48

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.
@@ -116,7 +116,7 @@ function deleteObject(obj, key) {
116
116
  /**
117
117
  *@private
118
118
  */
119
- const containerObject = window;
119
+ const containerObject = typeof window !== "undefined" ? window : {};
120
120
  /**
121
121
  * Check weather the given argument is only object.
122
122
  *
@@ -6629,7 +6629,7 @@ class LicenseValidator {
6629
6629
  else {
6630
6630
  validateMsg = this.errors.noLicense;
6631
6631
  }
6632
- if (validateMsg && !isNullOrUndefined(document)) {
6632
+ if (validateMsg && typeof document !== "undefined" && !isNullOrUndefined(document)) {
6633
6633
  let errorDiv = createElement('div', {
6634
6634
  innerHTML: validateMsg +
6635
6635
  '<span style="position:absolute;right: 10px;top:27%;cursor:pointer;"' +
@@ -6786,7 +6786,9 @@ let Component = class Component extends Base {
6786
6786
  this.localObserver = new Observer(this);
6787
6787
  // tslint:disable-next-line:no-function-constructor-with-string-args
6788
6788
  onIntlChange.on('notifyExternalChange', this.detectFunction, this, this.randomId);
6789
- validateLicense();
6789
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
6790
+ validateLicense();
6791
+ }
6790
6792
  if (!isUndefined(selector)) {
6791
6793
  this.appendTo();
6792
6794
  }