Fix eslint errors

This commit is contained in:
Anton Khorev 2022-08-28 00:53:53 +03:00
parent f41b5558b7
commit 2da8855cc2

View file

@ -1,16 +1,16 @@
L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
var control = L.control(options); var control = L.control(options);
control.onAdd = function (map) { control.onAdd = function (map) {
var $container = $("<div>") var $container = $("<div>")
.attr("class", "control-" + uiClass); .attr("class", "control-" + uiClass);
var button = $("<a>") var button = $("<a>")
.attr("class", "control-button") .attr("class", "control-button")
.attr("href", "#") .attr("href", "#")
.html("<span class=\"icon " + uiClass + "\"></span>") .html("<span class=\"icon " + uiClass + "\"></span>")
.on("click", toggle); .on("click", toggle);
if (buttonTitle) { if (buttonTitle) {
button.attr("title", I18n.t(buttonTitle)); button.attr("title", I18n.t(buttonTitle));
} }
@ -44,7 +44,7 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
} }
return $container[0]; return $container[0];
} };
// control.onAddPane = function (map, button, $ui, toggle) { // control.onAddPane = function (map, button, $ui, toggle) {
// } // }