[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-4' - loleaflet/src

Mihai Varga mihai.varga at collabora.com
Thu Aug 13 04:06:29 PDT 2015


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

New commits:
commit a9510d8e5944a9cdf940ee121ae57232c10f3f65
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 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 () {


More information about the Libreoffice-commits mailing list