added conversion code for CefV8Value::IsFunction

This commit is contained in:
David Serfozo
2015-03-08 16:23:14 +01:00
parent c950e7a0c8
commit 8eb889e2a3
2 changed files with 13 additions and 2 deletions
@@ -29,6 +29,10 @@ namespace CefSharp
for (std::vector<CefRefPtr<CefV8Value>>::size_type i = 0; i != arguments.size(); i++)
{
parameter[i] = TypeUtils::ConvertFromCef(arguments[i]);
if (arguments[i]->IsFunction())
{
parameter[i] = _callbackRegistry->CreateWrapper(CefV8Context::GetCurrentContext(), arguments[i]);
}
}
try