From c5506c80a79ed1d228c2e275e782b6509e4ae961 Mon Sep 17 00:00:00 2001 From: Ijeoma Igboagu Date: Wed, 12 Oct 2022 20:37:46 +0100 Subject: [PATCH] changed var to const & let --- src/edit/actions/DeleteAction.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/edit/actions/DeleteAction.js b/src/edit/actions/DeleteAction.js index ba5b01b5f..2a4c5cc5b 100644 --- a/src/edit/actions/DeleteAction.js +++ b/src/edit/actions/DeleteAction.js @@ -1,8 +1,8 @@ L.DeleteAction = L.EditAction.extend({ initialize(map, overlay, options) { - var edit = overlay.editing; - var use = 'delete_forever'; - var tooltip; + const edit = overlay.editing; + const use = 'delete_forever'; + let tooltip; /** * we can tell whether the overlay is an instance of `L.DistortableImageOverlay` or `L.DistortableCollection` bc only * the former should have `parentGroup` defined on it. From there we call the apporpriate keybindings and methods. @@ -32,7 +32,7 @@ L.DeleteAction = L.EditAction.extend({ }, addHooks() { - var edit = this._overlay.editing; + const edit = this._overlay.editing; if (edit instanceof L.DistortableImage.Edit) { edit._removeOverlay(); } else { edit._removeGroup(); }