From 40ef71dc4c0c9302fe54ed21c1d5b940ee6d68ed Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Tue, 27 Aug 2013 22:06:13 +0300 Subject: [PATCH] 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 6f077428..760b3253 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 3598bf93..038b4aab 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 {