internal BulkJsHelper(ISessionCache cache, IWebView webView, IJavascriptObject helper) { _Cache = cache; BulkObjectsUpdater = helper.GetValue("bulkUpdateObjects"); BulkArraysUpdater = helper.GetValue("bulkUpdateArrays"); CommandConstructor = helper.GetValue("Command"); _CommandPrototype = CommandConstructor.GetValue("prototype"); _CommandPrototype.Bind("privateExecute", webView, ExecuteExecutable); _CommandPrototype.Bind("privateCanExecute", webView, CanExecuteCommand); ExecutableConstructor = helper.GetValue("Executable"); _ExecutablePrototype = ExecutableConstructor.GetValue("prototype"); _ExecutablePrototype.Bind("privateExecute", webView, ExecuteExecutable); }
internal BulkJsHelper(IJavascriptSessionCache cache, IWebView webView, IJavascriptObject helper) { _Cache = cache; _WebView = webView; BulkCreator = helper.GetValue("bulkCreate"); CommandConstructor = helper.GetValue("Command"); _CommandPrototype = CommandConstructor.GetValue("prototype"); _CommandPrototype.Bind("privateExecute", _WebView, ExecuteExecutable); _CommandPrototype.Bind("privateCanExecute", _WebView, CanExecuteCommand); ExecutableConstructor = helper.GetValue("Executable"); _ExecutablePrototype = ExecutableConstructor.GetValue("prototype"); _ExecutablePrototype.Bind("privateExecute", _WebView, ExecuteExecutable); }