Skip to content

Commit

Permalink
changed var to const & let
Browse files Browse the repository at this point in the history
  • Loading branch information
ijayhub committed Oct 12, 2022
1 parent 4799032 commit c5506c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/edit/actions/DeleteAction.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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(); }
Expand Down

0 comments on commit c5506c8

Please sign in to comment.