(actions: StaticAction[], dependency = Promise.resolve())
| 682 | const orders = [...new Set(actions.map(action => action.loadingOrder))].sort(); |
| 683 | |
| 684 | const loadActions = (actions: StaticAction[], dependency = Promise.resolve()) => { |
| 685 | return dependency.then(() => { |
| 686 | const _promises: Promise<void>[] = []; |
| 687 | for (const action of actions) { |
| 688 | _promises.push (action.onLoad ()); |
| 689 | } |
| 690 | return Promise.all(_promises); |
| 691 | }); |
| 692 | }; |
| 693 | |
| 694 | let previous: Promise<unknown> = Promise.resolve(); |
| 695 |