@dotnet/jsinterop
Advanced tools
Comparing version 3.0.0-preview8.19405.4 to 3.0.0-preview9.19423.4
@@ -74,2 +74,5 @@ "use strict"; | ||
function invokePossibleInstanceMethodAsync(assemblyName, methodIdentifier, dotNetObjectId, args) { | ||
if (assemblyName && dotNetObjectId) { | ||
throw new Error("For instance method calls, assemblyName should be null. Received '" + assemblyName + "'."); | ||
} | ||
var asyncCallId = nextAsyncCallId++; | ||
@@ -224,3 +227,3 @@ var resultPromise = new Promise(function (resolve, reject) { | ||
DotNetObject.prototype.dispose = function () { | ||
var promise = invokeMethodAsync('Microsoft.JSInterop', 'DotNetDispatcher.ReleaseDotNetObject', this._id); | ||
var promise = invokePossibleInstanceMethodAsync(null, '__Dispose', this._id, null); | ||
promise.catch(function (error) { return console.error(error); }); | ||
@@ -227,0 +230,0 @@ }; |
{ | ||
"name": "@dotnet/jsinterop", | ||
"version": "3.0.0-preview8.19405.4", | ||
"version": "3.0.0-preview9.19423.4", | ||
"description": "Provides abstractions and features for interop between .NET and JavaScript code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/Microsoft.JSInterop.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25341
349