From a993fccd603c4b64cc69ba48796bce657cf306e9 Mon Sep 17 00:00:00 2001 From: fddima Date: Fri, 17 Dec 2010 01:45:52 +0200 Subject: [PATCH] - Fixed bug with creation of browser fails without registered js objects. - Fixed version number. :) --- CefSharp/CefSharp.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/CefSharp/CefSharp.h b/CefSharp/CefSharp.h index b038be432..3afa22329 100644 --- a/CefSharp/CefSharp.h +++ b/CefSharp/CefSharp.h @@ -18,6 +18,11 @@ namespace CefSharp static bool _initialized = false; static IDictionary^ _boundObjects; + static CEF() + { + _boundObjects = gcnew Dictionary(); + } + internal: static IDictionary^ GetBoundObjects() { @@ -37,7 +42,7 @@ namespace CefSharp { String^ get() { - return "0.1"; + return "0.2"; } } @@ -83,13 +88,7 @@ namespace CefSharp static bool RegisterJsObject(String^ name, Object^ objectToBind) { - if(_boundObjects == nullptr) - { - _boundObjects = gcnew Dictionary(); - } - _boundObjects[name] = objectToBind; - return true; }