Skip to content

Commit

Permalink
Merge pull request #1386 from snkashis/click_while_open
Browse files Browse the repository at this point in the history
Don't fade in a currently shown popup when clicking marker again
  • Loading branch information
mourner committed Feb 15, 2013
2 parents a948379 + 1c38b89 commit b42559d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/marker/Marker.Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

L.Marker.include({
openPopup: function () {
if (this._popup && this._map) {
if (this._popup && this._map && !this._map.hasLayer(this._popup)) {
this._popup.setLatLng(this._latlng);
this._map.openPopup(this._popup);
}
Expand Down

0 comments on commit b42559d

Please sign in to comment.