fix showing tailer at start or after deleting last waypoint

This commit is contained in:
Norbert Renner 2015-05-27 20:01:03 +02:00
parent 929ef35a12
commit 92730009e0

View file

@ -67,12 +67,12 @@ BR.Routing = L.Routing.extend({
// hide trailer over controls and outside map // hide trailer over controls and outside map
function show() { function show() {
if (this._hidden) { if (this._hidden && this._parent._waypoints._first) {
this._show(); this._show();
} }
} }
function hide() { function hide() {
if (!this._hidden) { if (!this._hidden && this._parent._waypoints._first) {
this._hide(); this._hide();
} }
} }