[Pkg-javascript-commits] [leaflet] 123/301: fix firefox console warnings when animating markers, close #2090

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:46 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 2629c181d0bd846ea51085048e19395946cf695f
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Fri Oct 11 18:44:10 2013 +0300

    fix firefox console warnings when animating markers, close #2090
---
 src/layer/marker/Marker.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/layer/marker/Marker.js b/src/layer/marker/Marker.js
index 4a75650..0927377 100644
--- a/src/layer/marker/Marker.js
+++ b/src/layer/marker/Marker.js
@@ -207,7 +207,7 @@ L.Marker = L.Class.extend({
 	},
 
 	_animateZoom: function (opt) {
-		var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center);
+		var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();
 
 		this._setPos(pos);
 	},

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