mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
JSB - Remove promise creator Extension
Backport changes from https://github.com/cefsharp/CefSharp/commit/7450d0d51b1d8bfbe7f3aedc7ce8fe3c96e83c03 Add .editorconfig to fix formatting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
|
||||
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CefSharp
|
||||
{
|
||||
namespace Async
|
||||
{
|
||||
void JavascriptAsyncObjectWrapper::Bind(JavascriptObject^ object, const CefRefPtr<CefV8Value> &value, const CefRefPtr<CefV8Value> &promiseCreator)
|
||||
void JavascriptAsyncObjectWrapper::Bind(JavascriptObject^ object, const CefRefPtr<CefV8Value> &value)
|
||||
{
|
||||
//V8Value that represents this javascript object - only one per complex type, no accessor
|
||||
auto javascriptObject = CefV8Value::CreateObject(nullptr, nullptr);
|
||||
@@ -24,7 +24,7 @@ namespace CefSharp
|
||||
|
||||
for each (JavascriptMethod^ method in Enumerable::OfType<JavascriptMethod^>(object->Methods))
|
||||
{
|
||||
auto wrappedMethod = gcnew JavascriptAsyncMethodWrapper(object->Id, _callbackRegistry, promiseCreator, _methodCallbackSave);
|
||||
auto wrappedMethod = gcnew JavascriptAsyncMethodWrapper(object->Id, _callbackRegistry, _methodCallbackSave);
|
||||
wrappedMethod->Bind(method, javascriptObject);
|
||||
|
||||
_wrappedMethods->Add(wrappedMethod);
|
||||
@@ -32,4 +32,4 @@ namespace CefSharp
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user