[Pkg-javascript-commits] [leaflet] 13/301: rebind popup when using setIcon to ensure proper popup anchor placement

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit e4c801a514309ac0ee0d694c6a4b2d91ffd8576b
Author: Steve Kashishian <steve at snkashis.com>
Date:   Fri Jul 19 20:30:05 2013 -0500

    rebind popup when using setIcon to ensure proper popup anchor placement
---
 src/layer/marker/Marker.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/layer/marker/Marker.js b/src/layer/marker/Marker.js
index bc82515..547241c 100644
--- a/src/layer/marker/Marker.js
+++ b/src/layer/marker/Marker.js
@@ -87,6 +87,10 @@ L.Marker = L.Class.extend({
 			this.update();
 		}
 
+		if (this._popup) {
+			this.bindPopup(this._popup);
+		}
+
 		return this;
 	},
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list