[Pkg-javascript-commits] [leaflet] 196/301: make Popup.setLatLng faster, fix #2167

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 44d98afb6a89fbd6ebeeec592802793486c1dd97
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Nov 7 19:55:22 2013 +0200

    make Popup.setLatLng faster, fix #2167
---
 src/layer/Popup.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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