[Libreoffice-commits] online.git: loleaflet/src

Mihai Varga mihai.varga at collabora.com
Thu Aug 13 04:20:21 PDT 2015


 loleaflet/src/layer/tile/GridLayer.js |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 7a6764098758651ab8d7f29497b16a99a7ed2bf5
Author: Mihai Varga <mihai.varga at 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 c496296..5d5cbfd 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -69,6 +69,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 () {


More information about the Libreoffice-commits mailing list