loleaflet/src/layer/tile/GridLayer.js | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit a9510d8e5944a9cdf940ee121ae57232c10f3f65 Author: Mihai Varga <mihai.va...@collabora.com> Date: Thu Aug 13 14:05:48 2015 +0300 loleaflet: remove cursor and markers when removing the layer diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js index e19035b..358e574 100644 --- a/loleaflet/src/layer/tile/GridLayer.js +++ b/loleaflet/src/layer/tile/GridLayer.js @@ -68,6 +68,14 @@ L.GridLayer = L.Layer.extend({ this._map.socket.onclose = function () {}; this._map.socket.onerror = function () {}; this._map.socket.close(); + if (this._cursorMarker) { + this._cursorMarker.remove(); + } + if (this._graphicMarker) { + this._graphicMarker.remove(); + } + this._startMarker.remove(); + this._endMarker.remove(); }, bringToFront: function () { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits