Merge pull request #3446 from ilfa/fix-vector-ie8

Fix vector in ie8
This commit is contained in:
Vladimir Agafonkin 2015-05-08 15:10:21 +03:00
commit 56f9ecac83
2 changed files with 3 additions and 6 deletions

View File

@ -60,7 +60,7 @@
var polyline = L.polyline([
getRandomLatLng(map),
getRandomLatLng(map),
getRandomLatLng(map),
getRandomLatLng(map)
], {
color: 'red'
}).bindPopup('I\'m a red polyline').addTo(map);

View File

@ -23,9 +23,6 @@ L.SVG.include(!L.Browser.vml ? {} : {
_initContainer: function () {
this._container = L.DomUtil.create('div', 'leaflet-vml-container');
this._paths = {};
this._initEvents();
},
_update: function () {
@ -49,13 +46,13 @@ L.SVG.include(!L.Browser.vml ? {} : {
_addPath: function (layer) {
var container = layer._container;
this._container.appendChild(container);
this._paths[L.stamp(container)] = layer;
layer.addInteractiveTarget(container);
},
_removePath: function (layer) {
var container = layer._container;
L.DomUtil.remove(container);
delete this._paths[L.stamp(container)];
layer.removeInteractiveTarget(container);
},
_updateStyle: function (layer) {