+ this.onAddPane(map, button, $ui, toggle);
+
+ function toggle(e) {
+ e.stopPropagation();
+ e.preventDefault();
+ if (!button.hasClass("disabled")) {
+ options.sidebar.togglePane($ui, button);
+ }
+ $(".leaflet-control .control-button").tooltip("hide");
+ }
+
+ return $container[0];