Skip to content

Commit

Permalink
perf: [Wasm] Don't deserialize unused TS interop output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed May 20, 2021
1 parent 2322829 commit 52f5b5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Uno.UI/UI/Xaml/WindowManagerInterop.wasm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static void Init(bool isHostedMode, bool isLoadEventsEnabled)
IsLoadEventsEnabled = isLoadEventsEnabled
};

TSInteropMarshaller.InvokeJS("UnoStatic:initNative", parms, typeof(bool));
TSInteropMarshaller.InvokeJS("UnoStatic:initNative", parms);
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ internal static void CreateContent(IntPtr htmlId, string htmlTag, IntPtr handle,
IsFocusable = isFocusable
};

TSInteropMarshaller.InvokeJS("Uno:createContentNative", parms, typeof(bool));
TSInteropMarshaller.InvokeJS("Uno:createContentNative", parms);
}
}

Expand Down Expand Up @@ -191,7 +191,7 @@ internal static void SetElementTransform(IntPtr htmlId, Matrix3x2 matrix)
M32 = matrix.M32,
};

TSInteropMarshaller.InvokeJS("Uno:setElementTransformNative", parms, typeof(bool));
TSInteropMarshaller.InvokeJS("Uno:setElementTransformNative", parms);
}
}

Expand Down Expand Up @@ -230,7 +230,7 @@ internal static void SetPointerEvents(IntPtr htmlId, bool enabled)
Enabled = enabled
};

TSInteropMarshaller.InvokeJS("Uno:setPointerEventsNative", parms, typeof(bool));
TSInteropMarshaller.InvokeJS("Uno:setPointerEventsNative", parms);
}
}

Expand Down

0 comments on commit 52f5b5d

Please sign in to comment.