Skip to content

Commit

Permalink
Merge pull request #1316 from marcus-v-rodrigues/issue-1310-change-le…
Browse files Browse the repository at this point in the history
…t-to-const

Issue 1310 - Change let to const
  • Loading branch information
TildaDares authored Dec 22, 2022
2 parents 4235213 + 45bb986 commit f31be12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edit/toolbars/DistortableImage.PopupBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ L.DistortableImage.PopupBar = L.Toolbar2.Popup.extend({
},

clickTool(name) {
let tools = this.tools();
const tools = this.tools();
for (let i = 0; i < tools.length; i++) {
let tool = tools.item(i).children[0];
const tool = tools.item(i).children[0];
if (L.DomUtil.hasClass(tool, name)) {
tool.click();
return tool;
Expand Down

0 comments on commit f31be12

Please sign in to comment.