[Pkg-javascript-commits] [leaflet] 190/301: fix problems with #1822 merge
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:50 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 b1c5aa2e29eaba0a407e0adc2cb50ccf60dfa96a
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Wed Nov 6 23:34:23 2013 +0200
fix problems with #1822 merge
---
src/geo/LatLng.js | 4 ++--
src/layer/GeoJSON.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/geo/LatLng.js b/src/geo/LatLng.js
index 6a1a8c5..9b0e9c5 100644
--- a/src/geo/LatLng.js
+++ b/src/geo/LatLng.js
@@ -3,8 +3,8 @@
*/
L.LatLng = function (lat, lng, alt) { // (Number, Number, Number)
- var lat = parseFloat(lat),
- lng = parseFloat(lng);
+ lat = parseFloat(lat);
+ lng = parseFloat(lng);
if (isNaN(lat) || isNaN(lng)) {
throw new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');
diff --git a/src/layer/GeoJSON.js b/src/layer/GeoJSON.js
index a5b87c3..6cc89c6 100644
--- a/src/layer/GeoJSON.js
+++ b/src/layer/GeoJSON.js
@@ -150,7 +150,7 @@ L.extend(L.GeoJSON, {
latLngToCoords: function (latlng) {
var coords = [latlng.lng, latlng.lat];
- if (latlng.alt === undefined) {
+ if (latlng.alt !== undefined) {
coords.push(latlng.alt);
}
return coords;
--
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