Skip to content

Commit db407e6

Browse files
committed
chore(*): minor license changes and code cleanup
1 parent 57accfb commit db407e6

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ This is a commercial product, requiring a valid paid-for license for commercial
22
This product is free to use for non-commercial educational use for students in K through 12 grades
33
or University programs, and for educators to use in a classroom setting as examples / tools in their curriculum.
44

5-
This repository includes files originally copied from https://github.com/zloirock/core-js
6-
under setImmediate.ts. The original versions of the files are MIT licensed. See the file headers for details.
7-
85
In order for us to verify your eligibility for free usage, please register for trial at
96
https://Infragistics.com/Angular and open a support ticket with a request for free license.
107

118
To acquire a license for commercial usage, please register for trial at https://Infragistics.com/Angular
129
and refer to the purchasing options in the pricing section on the product page.
1310

11+
This repository includes code originally copied from https://github.com/zloirock/core-js
12+
in the projects/igniteui-angular/src/lib/core/setImmediate.ts file. The original version of the code is MIT licensed. See the file header for details.
13+
1414
© Copyright 2020 INFRAGISTICS. All Rights Reserved.
1515
The Infragistics Ultimate license & copyright applies to this distribution.
1616
For information on that license, please go to our website https://www.infragistics.com/legal/license.

projects/igniteui-angular/ng-package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
},
88
"whitelistedNonPeerDependencies": [
99
"@types/hammerjs",
10-
"core-js-pure",
1110
"hammerjs",
1211
"jszip",
1312
"resize-observer-polyfill",

projects/igniteui-angular/ng-package.prod.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
},
1010
"whitelistedNonPeerDependencies": [
1111
"@types/hammerjs",
12-
"core-js-pure",
1312
"hammerjs",
1413
"jszip",
1514
"resize-observer-polyfill",

projects/igniteui-angular/schematics/utils/dependency-handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const DEPENDENCIES_MAP: PackageEntry[] = [
2929
{ name: 'resize-observer-polyfill', target: PackageTarget.REGULAR },
3030
{ name: '@types/hammerjs', target: PackageTarget.DEV },
3131
{ name: 'igniteui-trial-watermark', target: PackageTarget.NONE },
32-
{ name: 'core-js-pure', target: PackageTarget.NONE },
3332
{ name: 'lodash.merge', target: PackageTarget.NONE },
3433
// peerDependencies
3534
{ name: '@angular/forms', target: PackageTarget.NONE },

projects/igniteui-angular/src/lib/core/setImmediate.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ const listener = function (event) {
3636
run(event.data);
3737
};
3838

39+
if (!window.setImmediate) {
40+
window.addEventListener('message', listener, false);
41+
}
42+
3943
export function setImmediate(cb: any) {
4044
if (window.setImmediate) {
41-
window.setImmediate(cb);
42-
return;
45+
return window.setImmediate(cb);
4346
}
4447

4548
const args = [];
@@ -54,15 +57,13 @@ export function setImmediate(cb: any) {
5457
};
5558

5659
window.postMessage(counter + '', windowLocation.protocol + '//' + windowLocation.host);
57-
window.addEventListener('message', listener, false);
5860

5961
return counter;
6062
}
6163

6264
export function clearImmediate(id: any) {
6365
if (window.clearImmediate) {
64-
window.clearImmediate(id);
65-
return;
66+
return window.clearImmediate(id);
6667
}
6768

6869
delete queue[id];

0 commit comments

Comments
 (0)