From bc3306fbd2e357544ee1c1748d87b79d2fbaa021 Mon Sep 17 00:00:00 2001 From: Tammy <109901395+Tammy-Ajoko@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:53:52 +0100 Subject: [PATCH] Replaced `var` keyword with `const` This is an update for my last pull request https://github.com/publiclab/Leaflet.DistortableImage/pull/1089 --- src/edit/handles/RotateHandle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/edit/handles/RotateHandle.js b/src/edit/handles/RotateHandle.js index 4e7a0f704..c46b78ce3 100644 --- a/src/edit/handles/RotateHandle.js +++ b/src/edit/handles/RotateHandle.js @@ -12,9 +12,9 @@ L.RotateHandle = L.EditHandle.extend({ _onHandleDrag() { const overlay = this._handled; - let formerLatLng = overlay.getCorner(this._corner); - let newLatLng = this.getLatLng(); - let angle = this.calculateAngleDelta(formerLatLng, newLatLng); + const formerLatLng = overlay.getCorner(this._corner); + const newLatLng = this.getLatLng(); + const angle = this.calculateAngleDelta(formerLatLng, newLatLng); /* * running rotation logic even for an angle delta of 0