mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
added callback capability for async bound method with promises
This commit is contained in:
committed by
cefsharp-ms cefsharp-github@morganstanley.com
parent
a8db666642
commit
fc85d90877
@@ -24,7 +24,7 @@ namespace CefSharp
|
||||
|
||||
for each (JavascriptMethod^ method in Enumerable::OfType<JavascriptMethod^>(_object->Methods))
|
||||
{
|
||||
auto wrappedMethod = gcnew JavascriptAsyncMethodWrapper(_browser, method, _object->Id, CallbackRegistry);
|
||||
auto wrappedMethod = gcnew JavascriptAsyncMethodWrapper(method, _object->Id, CallbackRegistry, PromiseCreator.get(), MethodCallbackSave);
|
||||
wrappedMethod->Bind(javascriptObject);
|
||||
|
||||
_wrappedMethods->Add(wrappedMethod);
|
||||
|
||||
Reference in New Issue
Block a user