Merge pull request #436 from jderrough/master

Marker._map is undefined in Marker.bindPopup()
This commit is contained in:
Vladimir Agafonkin 2012-01-14 15:57:08 -08:00
commit e087a59f0c

View File

@ -5,7 +5,9 @@
L.Marker.include({
openPopup: function () {
this._popup.setLatLng(this._latlng);
if (this._map) {
this._map.openPopup(this._popup);
}
return this;
},