Skip to content

Commit de835e3

Browse files
committed
normalize dashArray in IE, update changelog
1 parent 5a1e2a9 commit de835e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Icon API was improved to be more flexible, but one of the changes is backwards-i
8181
* Added chaining to `DomEvent` methods.
8282
* Added `on` and `off` aliases for `DomEvent` `addListener` and `removeListener` methods.
8383
* Added `L_NO_TOUCH` global variable switch (set it before Leaflet inclusion) which disables touch detection, helpful for desktop apps built using QT. [#572](https://github.com/CloudMade/Leaflet/issues/572)
84+
* Added `dashArray` option to vector layers for making dashed strokes (by [jacobtoye](https://github.com/jacobtoye)). [#821](https://github.com/CloudMade/Leaflet/pull/821) [#165](https://github.com/CloudMade/Leaflet/issues/165)
8485
* Added `Circle` `getBounds` method. [#440](https://github.com/CloudMade/Leaflet/issues/440)
8586
* Added `Circle` `getLatLng` and `getRadius` methods (by [@Guiswa](https://github.com/Guiswa)). [#655](https://github.com/CloudMade/Leaflet/pull/655)
8687
* Added `openPopup` method to all vector layers. [#246](https://github.com/CloudMade/Leaflet/issues/246)

src/layer/vector/Path.VML.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
7373
stroke.color = options.color;
7474
stroke.opacity = options.opacity;
7575
if (options.dashArray) {
76-
stroke.dashStyle = options.dashArray;
76+
stroke.dashStyle = options.dashArray.replace(/ *, */g, ' ');
7777
} else {
7878
stroke.dashStyle = '';
7979
}

0 commit comments

Comments
 (0)