From 0187384638a708f2ec1574f2a74c1feb5b4868f1 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 10 Jan 2018 11:55:52 +0000 Subject: [PATCH] Clean up how JS functions are registered and located for invocation from .NET --- .../src/GlobalExports.ts | 14 ++++----- .../src/InternalRegisteredFunction.ts | 12 ++++++++ .../src/Platform/Mono/MonoPlatform.ts | 5 ++++ .../src/RegisteredFunction.ts | 30 ++++++++++++------- .../src/Rendering/Renderer.ts | 10 ++----- .../Interop/RegisteredFunction.cs | 2 +- .../Rendering/BrowserRenderer.cs | 4 +-- 7 files changed, 48 insertions(+), 29 deletions(-) create mode 100644 src/Microsoft.Blazor.Browser.JS/src/InternalRegisteredFunction.ts diff --git a/src/Microsoft.Blazor.Browser.JS/src/GlobalExports.ts b/src/Microsoft.Blazor.Browser.JS/src/GlobalExports.ts index 88325225b6..2f49ae5e06 100644 --- a/src/Microsoft.Blazor.Browser.JS/src/GlobalExports.ts +++ b/src/Microsoft.Blazor.Browser.JS/src/GlobalExports.ts @@ -1,13 +1,11 @@ import { platform } from './Environment' import { registerFunction } from './RegisteredFunction'; -// This file defines an export that, when the library is loaded in a browser via a -//