| 25 | } |
| 26 | |
| 27 | Value Animator::makeCompletionFunction() { |
| 28 | return Value(makeShared<ValueFunctionWithCallable>( |
| 29 | [completions = std::move(_completions)](const ValueFunctionCallContext& callContext) -> Value { |
| 30 | for (const auto& completion : completions) { |
| 31 | (*completion)(callContext); |
| 32 | } |
| 33 | return Valdi::Value::undefined(); |
| 34 | })); |
| 35 | } |
| 36 | |
| 37 | const NativeAnimator& Animator::getNativeAnimator() const { |
| 38 | return _nativeAnimator; |