mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
upgrade dependencies (#794)
* upgrade to latest Angular * upgrade material and ngrx * cleanup polyfills
This commit is contained in:
@@ -102,39 +102,3 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
|
||||
/***************************************************************************************************
|
||||
* APPLICATION IMPORTS
|
||||
*/
|
||||
|
||||
|
||||
// workaround for https://github.com/Microsoft/monaco-editor/issues/790
|
||||
|
||||
Promise.all = function(values: any): Promise<any> {
|
||||
let resolve: (v: any) => void;
|
||||
let reject: (v: any) => void;
|
||||
const promise = new this((res, rej) => {
|
||||
resolve = res;
|
||||
reject = rej;
|
||||
});
|
||||
let count = 0;
|
||||
let index = 0;
|
||||
const resolvedValues: any[] = [];
|
||||
for (let value of values) {
|
||||
if (!(value && value.then)) {
|
||||
value = this.resolve(value);
|
||||
}
|
||||
value.then(
|
||||
(idx => (val: any) => {
|
||||
resolvedValues[idx] = val;
|
||||
count--;
|
||||
if (!count) {
|
||||
resolve(resolvedValues);
|
||||
}
|
||||
})(index),
|
||||
reject
|
||||
);
|
||||
count++;
|
||||
index++;
|
||||
}
|
||||
if (!count) {
|
||||
resolve(resolvedValues);
|
||||
}
|
||||
return promise;
|
||||
};
|
||||
|
Reference in New Issue
Block a user