[Pkg-javascript-commits] [leaflet] 01/301: Added the getPopup function to L.Marker

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:37 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 e85a6a7affc22adf421f1fa76697ef679c59441e
Author: Scott Harvey <scottandrewharvey at gmail.com>
Date:   Tue Dec 4 12:21:33 2012 +0000

    Added the getPopup function to L.Marker
---
 src/layer/marker/.Marker.Popup.js.swp | Bin 0 -> 12288 bytes
 src/layer/marker/Marker.Popup.js      |   6 ++++++
 2 files changed, 6 insertions(+)

diff --git a/src/layer/marker/.Marker.Popup.js.swp b/src/layer/marker/.Marker.Popup.js.swp
new file mode 100644
index 0000000..f620e25
Binary files /dev/null and b/src/layer/marker/.Marker.Popup.js.swp differ
diff --git a/src/layer/marker/Marker.Popup.js b/src/layer/marker/Marker.Popup.js
index d05a3d7..f0b054a 100644
--- a/src/layer/marker/Marker.Popup.js
+++ b/src/layer/marker/Marker.Popup.js
@@ -54,6 +54,12 @@ L.Marker.include({
 		return this;
 	},
 
+  getPopup: function () {
+    if (this._popup) {
+      return this._popup;
+    }
+  },
+
 	_movePopup: function (e) {
 		this._popup.setLatLng(e.latlng);
 	}

-- 
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