@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.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +5 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +5 -3
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -57
- package/src/component.js +3 -1
- package/src/util.d.ts +1 -1
- package/src/util.js +1 -1
- package/src/validate-lic.js +1 -1
|
@@ -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
|
-
|
|
6789
|
+
if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
6790
|
+
validateLicense();
|
|
6791
|
+
}
|
|
6790
6792
|
if (!isUndefined(selector)) {
|
|
6791
6793
|
this.appendTo();
|
|
6792
6794
|
}
|