fix path canvas race condition, close #1615

This commit is contained in:
Vladimir Agafonkin 2013-04-24 22:29:25 +03:00
parent ddabd1b445
commit f139eea41a

View File

@ -136,7 +136,7 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
}, },
_onMouseMove: function (e) { _onMouseMove: function (e) {
if (this._map._animatingZoom) { return; } if (!this._map || this._map._animatingZoom) { return; }
// TODO don't do on each move // TODO don't do on each move
if (this._containsPoint(e.layerPoint)) { if (this._containsPoint(e.layerPoint)) {