Skip to content

Commit

Permalink
Merge pull request #1123 from jesutobi/update
Browse files Browse the repository at this point in the history
changed some variable declarations in Leaflet.DistortableImage/src/components/DistortableImage.Keymapper.js
  • Loading branch information
TildaDares authored Oct 12, 2022
2 parents b6cc75b + 1923c12 commit 97ddfe9
Show file tree
Hide file tree
Showing 2 changed files with 2,889 additions and 7 deletions.
2,886 changes: 2,884 additions & 2 deletions dist/leaflet.distortableimage.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/components/DistortableImage.Keymapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ L.DistortableImage.Keymapper = L.Handler.extend({
},

_buildContainer() {
var container = L.DomUtil.create('div', 'ldi-keymapper-hide');
const container = L.DomUtil.create('div', 'ldi-keymapper-hide');
container.setAttribute('id', 'ldi-keymapper');

var divider = L.DomUtil.create('br', 'divider');
const divider = L.DomUtil.create('br', 'divider');
container.appendChild(divider);

return container;
},

_createButton() {
var toggler = L.DomUtil.create('a', '');
const toggler = L.DomUtil.create('a', '');
toggler.innerHTML = L.IconUtil.create('keyboard_open');

toggler.setAttribute('id', 'toggle-keymapper');
Expand All @@ -63,7 +63,7 @@ L.DistortableImage.Keymapper = L.Handler.extend({
},

_wrap() {
var wrap = L.DomUtil.create('div', '');
const wrap = L.DomUtil.create('div', '');
wrap.setAttribute('id', 'keymapper-wrapper');
wrap.style.display = 'none';

Expand Down Expand Up @@ -128,7 +128,7 @@ L.DistortableImage.Keymapper = L.Handler.extend({
_injectIconSet() {
if (document.querySelector('#keymapper-iconset')) { return; }

var el = L.DomUtil.create('div', '');
const el = L.DomUtil.create('div', '');
el.id = 'keymapper-iconset';
el.setAttribute('hidden', 'hidden');

Expand Down

0 comments on commit 97ddfe9

Please sign in to comment.