[Pkg-javascript-commits] [leaflet] 78/301: minor cleanup

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:43 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 40ef71dc4c0c9302fe54ed21c1d5b940ee6d68ed
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Tue Aug 27 22:06:13 2013 +0300

    minor cleanup
---
 src/layer/Popup.js           | 6 +++---
 src/layer/vector/Path.VML.js | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/layer/Popup.js b/src/layer/Popup.js
index 6f07742..760b325 100644
--- a/src/layer/Popup.js
+++ b/src/layer/Popup.js
@@ -12,13 +12,13 @@ L.Popup = L.Class.extend({
 	options: {
 		minWidth: 50,
 		maxWidth: 300,
-		maxHeight: null,
+		// maxHeight: null,
 		autoPan: true,
 		closeButton: true,
 		offset: [0, 7],
 		autoPanPadding: [5, 5],
-		autoPanPaddingTopLeft: null,
-		autoPanPaddingBottomRight: null,
+		// autoPanPaddingTopLeft: null,
+		// autoPanPaddingBottomRight: null,
 		keepInView: false,
 		className: '',
 		zoomAnimation: true
diff --git a/src/layer/vector/Path.VML.js b/src/layer/vector/Path.VML.js
index 3598bf9..038b4aa 100644
--- a/src/layer/vector/Path.VML.js
+++ b/src/layer/vector/Path.VML.js
@@ -76,7 +76,7 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
 			stroke.opacity = options.opacity;
 
 			if (options.dashArray) {
-				stroke.dashStyle = options.dashArray instanceof Array ?
+				stroke.dashStyle = L.Util.isArray(options.dashArray) ?
 				    options.dashArray.join(' ') :
 				    options.dashArray.replace(/( *, *)/g, ' ');
 			} else {

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