mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Added support to use object parameters with anonymous function callback inside as parameter of bound functions.
This commit is contained in:
@@ -14,14 +14,7 @@ namespace CefSharp
|
||||
|
||||
for (std::vector<CefRefPtr<CefV8Value>>::size_type i = 0; i != arguments.size(); i++)
|
||||
{
|
||||
if (arguments[i]->IsFunction())
|
||||
{
|
||||
parameter[i] = _callbackRegistry->Register(CefV8Context::GetCurrentContext(), arguments[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
parameter[i] = TypeUtils::ConvertFromCef(arguments[i]);
|
||||
}
|
||||
parameter[i] = TypeUtils::ConvertFromCef(arguments[i], _callbackRegistry);
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user