[Pkg-javascript-commits] [leaflet] 197/301: fix build after #2167 fix

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:51 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 30e1e7eb55a08ad519375042373aa4a7cb75e697
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Nov 7 21:46:50 2013 +0200

    fix build after #2167 fix
---
 src/layer/Popup.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/layer/Popup.js b/src/layer/Popup.js
index 16ac9c0..290499e 100644
--- a/src/layer/Popup.js
+++ b/src/layer/Popup.js
@@ -101,8 +101,10 @@ L.Popup = L.Class.extend({
 
 	setLatLng: function (latlng) {
 		this._latlng = L.latLng(latlng);
-		this._updatePosition();
-		this._adjustPan();
+		if (this._map) {
+			this._updatePosition();
+			this._adjustPan();
+		}
 		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