diff --git a/debug/map/popup.html b/debug/map/popup.html index 36b5882e..3361708a 100644 --- a/debug/map/popup.html +++ b/debug/map/popup.html @@ -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); diff --git a/src/layer/vector/SVG.VML.js b/src/layer/vector/SVG.VML.js index fbd5c899..7099e776 100644 --- a/src/layer/vector/SVG.VML.js +++ b/src/layer/vector/SVG.VML.js @@ -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) {