Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace var keyword with let/const #1121

Merged
merged 6 commits into from
Oct 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/edit/actions/OpacityAction.js
Original file line number Diff line number Diff line change
@@ -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;
const edit = overlay.editing;
const mode = edit._mode;
let use;
let tooltip;

if (edit._transparent) {
use = 'opacity_empty';
Expand All @@ -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');
Expand Down