(animations, properties)
| 132 | } |
| 133 | |
| 134 | function awaitAll(animations, properties) { |
| 135 | const running = []; |
| 136 | const keys = Object.keys(properties); |
| 137 | for (let i = 0; i < keys.length; i++) { |
| 138 | const anim = animations[keys[i]]; |
| 139 | if (anim && anim.active()) { |
| 140 | running.push(anim.wait()); |
| 141 | } |
| 142 | } |
| 143 | // @ts-ignore |
| 144 | return Promise.all(running); |
| 145 | } |
| 146 | |
| 147 | function resolveTargetOptions(target, newOptions) { |
| 148 | if (!newOptions) { |
no test coverage detected