From 6bd5cdbc9f6a1f640460f4671c5fd5c99d558709 Mon Sep 17 00:00:00 2001 From: John Dance Date: Tue, 12 Jul 2022 16:06:35 -0700 Subject: [PATCH] fix a few samples that require react --- .../DashboardObjectVisibility/dashboardObjectVisibility.js | 6 ++++-- Samples/MoveAndResize/moveAndResize.js | 6 ++++-- Samples/ReplayAnimation/replayAnimation.js | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Samples/DashboardObjectVisibility/dashboardObjectVisibility.js b/Samples/DashboardObjectVisibility/dashboardObjectVisibility.js index a1361d58..2f8c28c0 100644 --- a/Samples/DashboardObjectVisibility/dashboardObjectVisibility.js +++ b/Samples/DashboardObjectVisibility/dashboardObjectVisibility.js @@ -1,6 +1,8 @@ 'use strict'; -let React; -let ReactDOM; +/* eslint-disable */ +var React; +var ReactDOM; +/* eslint-enable */ // Wrap everything in an anonymous function to avoid polluting the global namespace (async () => { diff --git a/Samples/MoveAndResize/moveAndResize.js b/Samples/MoveAndResize/moveAndResize.js index db5d8922..a9046f67 100644 --- a/Samples/MoveAndResize/moveAndResize.js +++ b/Samples/MoveAndResize/moveAndResize.js @@ -1,6 +1,8 @@ 'use strict'; -let React; -let ReactDOM; +/* eslint-disable */ +var React; +var ReactDOM; +/* eslint-enable */ // Wrap everything in an anonymous function to avoid polluting the global namespace (async () => { diff --git a/Samples/ReplayAnimation/replayAnimation.js b/Samples/ReplayAnimation/replayAnimation.js index e770bc6d..32e5d6ac 100644 --- a/Samples/ReplayAnimation/replayAnimation.js +++ b/Samples/ReplayAnimation/replayAnimation.js @@ -1,6 +1,8 @@ 'use strict'; -let React; -let ReactDOM; +/* eslint-disable */ +var React; +var ReactDOM; +/* eslint-enable */ (async () => { // Calls replayAnimationSync to toggle dashboard animation speed (0.5x, 1.0x, 2.0x) using ReplaySpeedType