| 112 | } |
| 113 | |
| 114 | void RuntimeWrapper::setViewModel(const Valdi::SharedContext& context, const Valdi::Value& viewModel) { |
| 115 | auto viewModelConvertible = Valdi::makeShared<Valdi::LazyValueConvertible>([=]() { return viewModel; }); |
| 116 | context->setViewModel(viewModelConvertible); |
| 117 | } |
| 118 | |
| 119 | void RuntimeWrapper::flushJsQueue() { |
| 120 | if (standaloneRuntime->getRuntime().getJavaScriptRuntime() != nullptr) { |