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 with let/const where appropriate. #1091

Merged
merged 8 commits into from
Oct 25, 2022
8 changes: 4 additions & 4 deletions src/edit/actions/DistortAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ L.DistortAction = L.EditAction.extend({
options = options || {};
options.toolbarIcon = {
svg: true,
html: 'distort',
html: "distort",
TildaDares marked this conversation as resolved.
Show resolved Hide resolved
tooltip: overlay.options.translation.distortImage,
className: 'distort',
className: "distort",
TildaDares marked this conversation as resolved.
Show resolved Hide resolved
};

L.DistortableImage.action_map.d = '_distortMode';
L.DistortableImage.action_map.d = "_distortMode";
TildaDares marked this conversation as resolved.
Show resolved Hide resolved
L.EditAction.prototype.initialize.call(this, map, overlay, options);
},

addHooks() {
var edit = this._overlay.editing;
const edit = this._overlay.editing;
edit._distortMode();
},
});