[Pkg-javascript-commits] [leaflet] 18/78: set Popup source to marker when bindPopup gets an instance of L.Popup
Jonas Smedegaard
dr at jones.dk
Sat May 7 08:58:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit 8eb11d71f2e3b77ab5113dd821bac671db541c11
Author: Egon Steiner <es at intermaps.com>
Date: Mon Jul 27 09:01:19 2015 +0200
set Popup source to marker when bindPopup gets an instance of L.Popup
---
src/layer/marker/Marker.Popup.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/layer/marker/Marker.Popup.js b/src/layer/marker/Marker.Popup.js
index e414d1b..0fa04cc 100644
--- a/src/layer/marker/Marker.Popup.js
+++ b/src/layer/marker/Marker.Popup.js
@@ -52,6 +52,7 @@ L.Marker.include({
if (content instanceof L.Popup) {
L.setOptions(content, options);
this._popup = content;
+ content._source = this;
} else {
this._popup = new L.Popup(options, this)
.setContent(content);
--
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