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