From da3412969dcaca16f174e646484faa4badb3bafd Mon Sep 17 00:00:00 2001 From: amaitland Date: Thu, 28 Aug 2014 19:40:01 +1000 Subject: [PATCH] Revery name change for TryGetMethod - seems slightly inconsistent so will need to be fixed. --- CefSharp/Internals/JavascriptObjectRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp/Internals/JavascriptObjectRepository.cs b/CefSharp/Internals/JavascriptObjectRepository.cs index 37abdd321..ac516cb22 100644 --- a/CefSharp/Internals/JavascriptObjectRepository.cs +++ b/CefSharp/Internals/JavascriptObjectRepository.cs @@ -52,7 +52,7 @@ namespace CefSharp.Internals return false; } - var method = obj.Methods.FirstOrDefault(p => p.JavascriptName == name); + var method = obj.Methods.FirstOrDefault(p => p.ManagedName == name); if (method == null) { throw new InvalidOperationException(string.Format("Method {0} not found on Object of Type {1}", name, obj.Value.GetType()));