Skip to content

Commit

Permalink
Merge pull request #1134 from ijayhub/DeleteAction
Browse files Browse the repository at this point in the history
changed var to const & let
  • Loading branch information
TildaDares authored Oct 12, 2022
2 parents 4799032 + c5506c8 commit b6cc75b
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 b6cc75b

Please sign in to comment.