Avoid exceptions on mouse-events while initializing.
Change-Id: I7f25e08edcc7a34b08016211c599774973fd506d
This commit is contained in:
parent
9859a5f56b
commit
db20596a0a
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ L.Control.Header = L.Control.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_entryAtPoint: function(point) {
|
_entryAtPoint: function(point) {
|
||||||
|
if (!this._tickMap)
|
||||||
|
return false;
|
||||||
|
|
||||||
var position = this._getParallelPos(point);
|
var position = this._getParallelPos(point);
|
||||||
position = position - this._position;
|
position = position - this._position;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue