From 66ea18089924e3b8b7422f6a4312e259980a1b58 Mon Sep 17 00:00:00 2001 From: Elijah Ndibe Date: Tue, 11 Oct 2022 22:11:00 +0100 Subject: [PATCH 1/4] Changed var keywoard to let/const --- src/edit/actions/OpacityAction.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/edit/actions/OpacityAction.js b/src/edit/actions/OpacityAction.js index 78f64b19d..1dcf7ad4f 100644 --- a/src/edit/actions/OpacityAction.js +++ b/src/edit/actions/OpacityAction.js @@ -1,9 +1,9 @@ L.OpacityAction = L.EditAction.extend({ initialize(map, overlay, options) { - var edit = overlay.editing; - var mode = edit._mode; - var use; - var tooltip; + let edit = overlay.editing; + const mode = edit._mode; + let use; + let tooltip; if (edit._transparent) { use = 'opacity_empty'; @@ -27,8 +27,8 @@ L.OpacityAction = L.EditAction.extend({ }, addHooks() { - var edit = this._overlay.editing; - var link = this._link; + const edit = this._overlay.editing; + const link = this._link; L.IconUtil.toggleXlink(link, 'opacity', 'opacity_empty'); L.IconUtil.toggleTitle(link, 'Make Image Transparent', 'Make Image Opaque'); From b90a21a0a1efe26610c25a55abafad71d9a00382 Mon Sep 17 00:00:00 2001 From: Elijah Ndibe Date: Tue, 11 Oct 2022 22:21:25 +0100 Subject: [PATCH 2/4] Changed var keyword to let/const in opacityAction.js --- src/edit/actions/OpacityAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit/actions/OpacityAction.js b/src/edit/actions/OpacityAction.js index 1dcf7ad4f..98b4c640d 100644 --- a/src/edit/actions/OpacityAction.js +++ b/src/edit/actions/OpacityAction.js @@ -13,7 +13,7 @@ L.OpacityAction = L.EditAction.extend({ tooltip = overlay.options.translation.makeImageTransparent; } - options = options || {}; + options = options || {} options.toolbarIcon = { svg: true, html: use, From 1036874f85f93bb16a1724d606136cfa35d5baca Mon Sep 17 00:00:00 2001 From: Elijah Ndibe Date: Tue, 11 Oct 2022 22:22:16 +0100 Subject: [PATCH 3/4] Changed var keyword to let/const in opacityAction.js --- src/edit/actions/OpacityAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit/actions/OpacityAction.js b/src/edit/actions/OpacityAction.js index 98b4c640d..1dcf7ad4f 100644 --- a/src/edit/actions/OpacityAction.js +++ b/src/edit/actions/OpacityAction.js @@ -13,7 +13,7 @@ L.OpacityAction = L.EditAction.extend({ tooltip = overlay.options.translation.makeImageTransparent; } - options = options || {} + options = options || {}; options.toolbarIcon = { svg: true, html: use, From d53f0f01fdaaedfbff7f0217c4eb20e6c1960ec7 Mon Sep 17 00:00:00 2001 From: Elijah Ndibe Date: Wed, 12 Oct 2022 09:11:40 +0100 Subject: [PATCH 4/4] Changed var keyword to let/const in opacityAction.js --- src/edit/actions/OpacityAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit/actions/OpacityAction.js b/src/edit/actions/OpacityAction.js index 1dcf7ad4f..9bd421186 100644 --- a/src/edit/actions/OpacityAction.js +++ b/src/edit/actions/OpacityAction.js @@ -1,6 +1,6 @@ L.OpacityAction = L.EditAction.extend({ initialize(map, overlay, options) { - let edit = overlay.editing; + const edit = overlay.editing; const mode = edit._mode; let use; let tooltip;